cirandas.net

ref: master

db/migrate/20140519113821_add_last_login_at_to_user.rb


1
2
3
4
5
6
7
8
9
class AddLastLoginAtToUser < ActiveRecord::Migration
  def self.up
    add_column :users, :last_login_at, :datetime
  end

  def self.down
    remove_column :users, :last_login_at
  end
end