Sha256: 15477e19ebf4e25e9d2145182554ead115bae456a034a40bce897173efb50c49

Contents?: true

Size: 407 Bytes

Versions: 7

Compression:

Stored size: 407 Bytes

Contents

# frozen_string_literal: true

class DropRecoverable < ActiveRecord::Migration[4.2]
  def up
    change_table(:users) do |t|
      t.remove :reset_password_token
      t.remove :reset_password_sent_at
    end
  end

  def down
    change_table(:users) do |t|
      t.string   :reset_password_token
      t.datetime :reset_password_sent_at
      t.index :reset_password_token, unique: true
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
devise_g5_authenticatable-1.0.3 spec/dummy/db/migrate/20140103032308_drop_recoverable.rb
devise_g5_authenticatable-1.0.2.rc.3 spec/dummy/db/migrate/20140103032308_drop_recoverable.rb
devise_g5_authenticatable-1.0.2.rc.2 spec/dummy/db/migrate/20140103032308_drop_recoverable.rb
devise_g5_authenticatable-1.0.2.rc.1 spec/dummy/db/migrate/20140103032308_drop_recoverable.rb
devise_g5_authenticatable-1.0.1.rc.1 spec/dummy/db/migrate/20140103032308_drop_recoverable.rb
devise_g5_authenticatable-1.0.0 spec/dummy/db/migrate/20140103032308_drop_recoverable.rb
devise_g5_authenticatable-1.0.0.pre.1 spec/dummy/db/migrate/20140103032308_drop_recoverable.rb