Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F888091
20160124191156_create_invitations.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, 9:09 AM
Size
323 B
Mime Type
text/x-ruby
Expires
Tue, Aug 12, 9:09 AM (14 h, 3 m)
Engine
blob
Format
Raw Data
Handle
229207
Attached To
rARCHIVING archiving
20160124191156_create_invitations.rb
View Options
class
CreateInvitations
<
ActiveRecord
::
Migration
def
up
create_table
:invitations
do
|
t
|
t
.
references
:user
t
.
references
:host
t
.
string
:verification_code
t
.
timestamps
end
add_index
:invitations
,
[
:user_id
,
:verification_code
]
end
def
down
drop_table
:invitations
end
end
Event Timeline
Log In to Comment