Sha256: ce2f1b43f627a2899c39ddf4824fb97524c0223fe14ad11a211ad7888fb8f23d

Contents?: true

Size: 761 Bytes

Versions: 4

Compression:

Stored size: 761 Bytes

Contents

require "logger"

ActiveRecord::Base.establish_connection(:adapter => "sqlite3", :database => ":memory:")
ActiveRecord::Base.configurations = true

File.open('spec.log', "w").close
ActiveRecord::Base.logger = Logger.new('spec.log')



WillPaginate.enable

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.boolean :disabled, :null => false, :default => nil
    t.boolean :confirmed, :null => false, :default => nil
    t.timestamps
  end

  create_table :groups do |t|
    t.string :name
    t.timestamps
  end

  class ::Entry < ActiveRecord::Base
    belongs_to :group
  end
  class ::Group < ActiveRecord::Base
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
datagrid-0.2.0 spec/support/schema.rb
datagrid-0.1.2 spec/support/schema.rb
datagrid-0.1.1 spec/support/schema.rb
datagrid-0.1.0 spec/support/schema.rb