Class: CreateOldPasswords
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateOldPasswords
- Defined in:
- lib/devise_password_history/generators/templates/migrations/create_old_passwords.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
12 13 14 |
# File 'lib/devise_password_history/generators/templates/migrations/create_old_passwords.rb', line 12 def self.down drop_table :old_passwords end |
.up ⇒ Object
2 3 4 5 6 7 8 9 10 |
# File 'lib/devise_password_history/generators/templates/migrations/create_old_passwords.rb', line 2 def self.up create_table :old_passwords do |t| t.string :encrypted_password, :null => false t.string :password_salt t.string :password_history_type, :null => false t.integer :password_history_id, :null => false t.datetime :created_at end end |