Sha256: 5cf1a2f8daf7ebd9397b0617698e6b3d491f9fb0d55b82f9816f239af78f2a2f

Contents?: true

Size: 426 Bytes

Versions: 1

Compression:

Stored size: 426 Bytes

Contents

class UpdateUserForSorcery < ActiveRecord::Migration
  def up
    add_column :users, :unlock_token, :string, :default => nil unless column_exists? :users, :unlock_token
    add_column :users, :last_login_from_ip_address, :string, :default => nil unless column_exists? :users, :last_login_from_ip_address
  end

  def down
    remove_column :users, :unlock_token
    remove_column :users, :last_login_from_ip_address
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
erp_tech_svcs-4.2.0 db/migrate/20150609003216_update_user_for_sorcery.rb