Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F1614740
20151028123327_constraints.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
Sat, Mar 21, 3:36 AM
Size
340 B
Mime Type
text/x-ruby
Expires
Mon, Mar 23, 3:36 AM (8 h, 8 m)
Engine
blob
Format
Raw Data
Handle
354177
Attached To
rWEBDNS WebDNS (edet4)
20151028123327_constraints.rb
View Options
class
Constraints
<
ActiveRecord
::
Migration
def
up
execute
<<-
SQL
.
gsub
(
/\s+/
,
' '
)
.
strip
ALTER TABLE `records` ADD CONSTRAINT `records_ibfk_1` FOREIGN KEY (`domain_id`)
REFERENCES `domains` (`id`) ON DELETE CASCADE;
SQL
end
def
down
execute
'ALTER TABLE `records` DROP FOREIGN KEY `records_ibfk_1`'
end
end
Event Timeline
Log In to Comment