foodsoft/db/migrate/020_add_users_last_login.rb

10 lines
186 B
Ruby
Raw Permalink Normal View History

class AddUsersLastLogin < ActiveRecord::Migration[4.2]
2009-01-06 11:49:19 +01:00
def self.up
add_column :users, :last_login, :datetime
end
def self.down
remove_column :users, :last_login
end
end