lib/generators/devise/templates/migration.rb in devise-1.1.pre4 vs lib/generators/devise/templates/migration.rb in devise-1.1.rc0
- old
+ new
@@ -1,13 +1,13 @@
class DeviseCreate<%= table_name.camelize %> < ActiveRecord::Migration
def self.up
create_table(:<%= table_name %>) do |t|
- t.authenticatable :encryptor => :sha1, :null => false
+ t.database_authenticatable :null => false
t.confirmable
t.recoverable
t.rememberable
t.trackable
- # t.lockable
+ # t.lockable :lock_strategy => :<%= Devise.lock_strategy %>, :unlock_strategy => :<%= Devise.unlock_strategy %>
t.timestamps
end
add_index :<%= table_name %>, :email, :unique => true