Sha256: c32eb82e9b19c9c493492bf5b1feed6d755ccf1337c25d096e401d624f650672

Contents?: true

Size: 624 Bytes

Versions: 7

Compression:

Stored size: 624 Bytes

Contents

ActiveRecord::Base.establish_connection(:adapter => 'sqlite3', :database => "#{File.dirname(__FILE__)}/../../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

7 entries across 7 versions & 1 rubygems

Version Path
scoped_from-0.6.1 spec/support/bootsrap/database.rb
scoped_from-0.6.0 spec/support/bootsrap/database.rb
scoped_from-0.5.1 spec/support/bootsrap/database.rb
scoped_from-0.5.0 spec/support/bootsrap/database.rb
scoped_from-0.5 spec/support/bootsrap/database.rb
scoped_from-0.4 spec/support/bootsrap/database.rb
scoped_from-0.3 spec/support/bootsrap/database.rb