foodsoft/db/migrate/020_add_users_last_login.rb

10 lines
186 B
Ruby

class AddUsersLastLogin < ActiveRecord::Migration[4.2]
def self.up
add_column :users, :last_login, :datetime
end
def self.down
remove_column :users, :last_login
end
end