Sha256: f420a03ce921e9251d4e8010f64bb98ed04cb741789a7f38a8cf80263932fbc0
Contents?: true
Size: 816 Bytes
Versions: 3
Compression:
Stored size: 816 Bytes
Contents
require "sqlite3" ActiveRecord::Base.establish_connection(:adapter => "sqlite3", :database => ":memory:") #ActiveRecord::Base.configurations = true ActiveRecord::Base.logger = TEST_LOGGER ActiveRecord::Schema.verbose = false ActiveRecord::Schema.define(:version => 1) do create_table :entries do |t| t.integer :group_id t.string :name t.string :category t.string :access_level t.string :pet t.boolean :disabled, :null => false, :default => false t.boolean :confirmed, :null => false, :default => false t.date :shipping_date t.timestamps end create_table :groups do |t| t.string :name t.float :rating t.timestamps end class ::Entry < ActiveRecord::Base belongs_to :group end class ::Group < ActiveRecord::Base has_many :entries end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
datagrid-1.6.1 | spec/support/active_record.rb |
datagrid-1.6.0 | spec/support/active_record.rb |
datagrid-1.5.9 | spec/support/active_record.rb |