foodsoft/db/migrate/020_add_users_last_login.rb

10 lines
181 B
Ruby
Raw Normal View History

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