repo.or.cz
/
beast-modified.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
beast rev 2066
[beast-modified.git]
/
db
/
migrate
/
014_set_last_seen_at.rb
blob
99c60cab8a6c2d00668175ba1eb90bc93ae5859e
1
class SetLastSeenAt < ActiveRecord::Migration
2
def self.up
3
User.find(:all).each do |user|
4
if user.last_seen_at.nil?
5
user.last_seen_at=Time.now.utc
6
user.save!
7
end
8
end
9
end
10
11
def self.down
12
end
13
end