Sha256: 6af31961d66813d25eb0963d0fc3b87521f8a965e156163404ce3c3e9a38e1bd
Contents?: true
Size: 765 Bytes
Versions: 6
Compression:
Stored size: 765 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 => false t.boolean :confirmed, :null => false, :default => false 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
6 entries across 6 versions & 1 rubygems