Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F5493061
20151026180147_create_fileset_table.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
Tue, Sep 29, 9:55 PM
Size
428 B
Mime Type
text/x-ruby
Expires
Thu, Oct 1, 9:55 PM (21 h, 47 m)
Engine
blob
Format
Raw Data
Handle
454102
Attached To
rARCHIVING archiving
20151026180147_create_fileset_table.rb
View Options
class
CreateFilesetTable
<
ActiveRecord
::
Migration
def
connection
ActiveRecord
::
Base
.
establish_connection
(
Baas
::
settings
[
:local_db
]
)
.
connection
end
def
up
create_table
:filesets
do
|
t
|
t
.
string
:name
t
.
integer
:host_id
t
.
text
:exclude_directions
t
.
text
:include_directions
t
.
timestamps
end
add_index
:filesets
,
:host_id
end
def
down
drop_table
:filesets
end
end
Event Timeline
Log In to Comment