Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F462837
20151024162823_create_hosts_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
Mon, May 19, 12:14 AM
Size
427 B
Mime Type
text/x-ruby
Expires
Wed, May 21, 12:14 AM (6 h, 2 m)
Engine
blob
Format
Raw Data
Handle
220702
Attached To
rARCHIVING archiving
20151024162823_create_hosts_table.rb
View Options
class
CreateHostsTable
<
ActiveRecord
::
Migration
def
change
create_table
:hosts
do
|
t
|
t
.
binary
:name
,
limit
:
255
,
null
:
false
t
.
binary
:fqdn
,
limit
:
255
,
null
:
false
t
.
integer
:port
,
null
:
false
t
.
integer
:file_retention
,
null
:
false
t
.
integer
:job_retention
,
null
:
false
t
.
timestamps
end
add_index
:hosts
,
:name
,
unique
:
true
,
length
:
{
name
:
128
},
using
:
:btree
end
end
Event Timeline
Log In to Comment