|
|
@ -1,7 +1,7 @@
|
|
|
|
# frozen_string_literal: true
|
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
|
|
|
|
class AddDeviseToUsers < ActiveRecord::Migration[4.2]
|
|
|
|
class AddDeviseToUsers < ActiveRecord::Migration[4.2]
|
|
|
|
def self.up
|
|
|
|
def up
|
|
|
|
change_table(:users, bulk: true) do |t|
|
|
|
|
change_table(:users, bulk: true) do |t|
|
|
|
|
## Database authenticatable
|
|
|
|
## Database authenticatable
|
|
|
|
t.string :encrypted_password, null: false, default: ''
|
|
|
|
t.string :encrypted_password, null: false, default: ''
|
|
|
@ -24,7 +24,7 @@ class AddDeviseToUsers < ActiveRecord::Migration[4.2]
|
|
|
|
add_index :users, :reset_password_token, unique: true
|
|
|
|
add_index :users, :reset_password_token, unique: true
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
def self.down
|
|
|
|
def down
|
|
|
|
remove_index :users, :reset_password_token
|
|
|
|
remove_index :users, :reset_password_token
|
|
|
|
|
|
|
|
|
|
|
|
remove_column :users, :encrypted_password
|
|
|
|
remove_column :users, :encrypted_password
|
|
|
|