Sha256: e1f9654ac1f13ea5aa712f67a615c724608ff711de1df0133649a3297015a272

Contents?: true

Size: 316 Bytes

Versions: 2

Compression:

Stored size: 316 Bytes

Contents

Sequel.migration do
  transaction
  up do
    run 'ALTER TABLE `functions` ADD CONSTRAINT `function_namespace_id` FOREIGN KEY (`namespace_id`) REFERENCES `namespaces` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE;'
  end

  down do
    run 'ALTER TABLE `functions` DROP FOREIGN KEY `function_namespace_id`;'
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
legion-data-0.1.1 lib/legion/data/migrations/013_function_foreign_keys.rb
legion-data-0.1.0 lib/legion/data/migrations/013_function_foreign_keys.rb