mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
27 lines
615 B
Ruby
27 lines
615 B
Ruby
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
|
|
t.lockable
|
|
t.token_authenticatable
|
|
end
|
|
|
|
t.timestamps
|
|
end
|
|
end
|
|
end
|
|
|
|
class ActiveSupport::TestCase
|
|
self.use_transactional_fixtures = true
|
|
self.use_instantiated_fixtures = false
|
|
end
|