heartcombo--devise/test/orm/active_record.rb

28 lines
615 B
Ruby
Raw Normal View History

2009-12-21 14:29:58 +00:00
ActiveRecord::Migration.verbose = false
ActiveRecord::Base.logger = Logger.new(nil)
ActiveRecord::Schema.define(:version => 1) do
[:users, :admins, :accounts].each do |table|
create_table table do |t|
t.authenticatable :null => table == :admins
if table != :admin
t.string :username
t.confirmable
t.recoverable
t.rememberable
t.trackable
2009-12-30 17:19:33 +00:00
t.lockable
t.token_authenticatable
2009-12-21 14:29:58 +00:00
end
t.timestamps
end
end
end
class ActiveSupport::TestCase
self.use_transactional_fixtures = true
self.use_instantiated_fixtures = false
end