Sha256: 07dbf267934275eb88ce0a247cc91ba027a55be31aaafb5e561d1ce8aa6c4ce2

Contents?: true

Size: 798 Bytes

Versions: 38

Compression:

Stored size: 798 Bytes

Contents

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

38 entries across 38 versions & 1 rubygems

Version Path
datagrid-1.5.1 spec/support/active_record.rb
datagrid-1.5.0 spec/support/active_record.rb
datagrid-1.4.4 spec/support/active_record.rb
datagrid-1.4.3 spec/support/active_record.rb
datagrid-1.4.2 spec/support/active_record.rb
datagrid-1.4.1 spec/support/active_record.rb
datagrid-1.4.0 spec/support/active_record.rb
datagrid-1.3.9 spec/support/active_record.rb
datagrid-1.3.7 spec/support/active_record.rb
datagrid-1.3.6 spec/support/active_record.rb
datagrid-1.3.5 spec/support/active_record.rb
datagrid-1.3.4 spec/support/active_record.rb
datagrid-1.3.3 spec/support/active_record.rb
datagrid-1.3.2 spec/support/active_record.rb
datagrid-1.3.1 spec/support/active_record.rb
datagrid-1.3.0 spec/support/active_record.rb
datagrid-1.2.3 spec/support/active_record.rb
datagrid-1.2.2 spec/support/active_record.rb
datagrid-1.2.1 spec/support/active_record.rb
datagrid-1.2.0 spec/support/active_record.rb