Sha256: adad7c08e018a8ad2d69daf323c1cd71734cf74bd1687ac80ded25533c280878
Contents?: true
Size: 601 Bytes
Versions: 3
Compression:
Stored size: 601 Bytes
Contents
ActiveRecord::Base.establish_connection(adapter: 'sqlite3', database: File.expand_path("#{__dir__}/../../test.sqlite3"), timeout: 5000) ActiveRecord::Base.connection.create_table(:comments, force: true) ActiveRecord::Base.connection.create_table(:posts, force: true) ActiveRecord::Base.connection.create_table(:users, force: true) do |t| t.string :firstname, null: false t.string :lastname, null: false t.boolean :enabled, null: false, default: false t.boolean :admin, null: false, default: false t.timestamps null: false end ActiveRecord::Base.connection.create_table(:votes, force: true)
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
scoped_from-1.0.1 | spec/support/bootstrap/database.rb |
scoped_from-1.0.0 | spec/support/bootstrap/database.rb |
scoped_from-0.9.0 | spec/support/bootstrap/database.rb |