Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F887499
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
Sun, Aug 10, 1:11 AM
Size
427 B
Mime Type
text/x-ruby
Expires
Tue, Aug 12, 1:11 AM (3 h, 26 m)
Engine
blob
Format
Raw Data
Handle
228040
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