Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F887947
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, Aug 10, 7:37 AM
Size
244 B
Mime Type
text/x-ruby
Expires
Tue, Aug 12, 7:37 AM (1 h, 48 m)
Engine
blob
Format
Raw Data
Handle
229575
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