spec/support/bootsrap/database.rb in scoped_from-0.2 vs spec/support/bootsrap/database.rb in scoped_from-0.3
- old
+ new
@@ -3,9 +3,10 @@
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
+ 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)
\ No newline at end of file