Sha256: ad5ae380cad30a3b49c1bf51778b6df21f9a10978e0c657f27166f682cd4bdb3

Contents?: true

Size: 589 Bytes

Versions: 5

Compression:

Stored size: 589 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
end
ActiveRecord::Base.connection.create_table(:votes, force: true)

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
scoped_from-0.8.5 spec/support/bootsrap/database.rb
scoped_from-0.8.4 spec/support/bootsrap/database.rb
scoped_from-0.8.3 spec/support/bootsrap/database.rb
scoped_from-0.8.2 spec/support/bootsrap/database.rb
scoped_from-0.8.1 spec/support/bootsrap/database.rb