Sha256: 28102346f7f8164fef62432a7a02aabf1965be45923f24d0ae86babe9b8ac8b8

Contents?: true

Size: 776 Bytes

Versions: 1

Compression:

Stored size: 776 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
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
datagrid-0.7.0 spec/support/active_record.rb