foodsoft/db/migrate/020_add_users_last_login.rb
2020-09-05 14:40:11 +02:00

9 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