Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F1431148
20160125170032_add_hosts_updated_at_to_users.rb
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Jan 18, 3:12 PM
Size
244 B
Mime Type
text/x-ruby
Expires
Tue, Jan 20, 3:12 PM (19 h, 10 m)
Engine
blob
Format
Raw Data
Handle
325688
Attached To
rARCHIVING archiving
20160125170032_add_hosts_updated_at_to_users.rb
View Options
class
AddHostsUpdatedAtToUsers
<
ActiveRecord
::
Migration
def
up
add_column
:users
,
:hosts_updated_at
,
:datetime
User
.
vima
.
update_all
(
hosts_updated_at
:
Time
.
now
)
end
def
down
remove_column
:users
,
:hosts_updated_at
end
end
Event Timeline
Log In to Comment