Sha256: 829a2c6457a70c64b947413f953cbda51964f8bda86538cd28980c16d0697919
Contents?: true
Size: 805 Bytes
Versions: 1
Compression:
Stored size: 805 Bytes
Contents
Sequel.migration do up do run "CREATE TABLE `functions` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(128) NOT NULL, `active` tinyint(1) unsigned NOT NULL DEFAULT '1', `runner_id` int(11) unsigned NOT NULL, `args` text, `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `updated` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`), UNIQUE KEY `runner_id` (`runner_id`,`name`), KEY `active` (`active`), KEY `namespace` (`runner_id`), KEY `name` (`name`), CONSTRAINT `function_runner_id` FOREIGN KEY (`runner_id`) REFERENCES `runners` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8;" end down do drop_table :functions end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
legion-data-1.2.0 | lib/legion/data/migrations/006_add_functions.rb |