Sha256: e4909b07e69f7d32d0d6f67a92f199c31fa6245d7aeba0c00506a7dfff253e77
Contents?: true
Size: 1.04 KB
Versions: 134
Compression:
Stored size: 1.04 KB
Contents
class AddDeviseToUsers < ActiveRecord::Migration def self.up change_table(:users) do |t| t.database_authenticatable :null => false t.recoverable t.rememberable t.trackable # t.encryptable # t.confirmable # t.lockable :lock_strategy => :failed_attempts, :unlock_strategy => :both # t.token_authenticatable # Uncomment below if timestamps were not included in your original model. # t.timestamps end add_index :users, :email #, :unique => true add_index :users, :reset_password_token, :unique => true # add_index :users, :confirmation_token, :unique => true # add_index :users, :unlock_token, :unique => true # add_index :users, :authentication_token, :unique => true end def self.down # By default, we don't want to make any assumption about how to roll back a migration when your # model already existed. Please edit below which fields you would like to remove in this migration. raise ActiveRecord::IrreversibleMigration end end
Version data entries
134 entries across 134 versions & 12 rubygems