Class: AddPasswordResetCodeToUsers

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/device_tracker/db/migrate/20151029085629_add_password_reset_code_to_users.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



2
3
4
5
6
# File 'lib/device_tracker/db/migrate/20151029085629_add_password_reset_code_to_users.rb', line 2

def change
  change_table :users do |t|
      t.string :reset_code, default: nil
  end
end