Sha256: 9e341ae41cadc5ba758415a55d36a7092748d5600186fa30443d58795c736cf7
Contents?: true
Size: 1.16 KB
Versions: 6
Compression:
Stored size: 1.16 KB
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, `user_owner` int(11) unsigned DEFAULT NULL, `group_owner` int(11) unsigned DEFAULT NULL, `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`), KEY `functions_user_owner` (`user_owner`), KEY `functions_group_owner` (`group_owner`), CONSTRAINT `function_runner_id` FOREIGN KEY (`runner_id`) REFERENCES `runners` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `functions_group_owner` FOREIGN KEY (`group_owner`) REFERENCES `groups` (`id`) ON DELETE SET NULL ON UPDATE CASCADE, CONSTRAINT `functions_user_owner` FOREIGN KEY (`user_owner`) REFERENCES `users` (`id`) ON DELETE SET NULL ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8;" end down do drop_table :functions end end
Version data entries
6 entries across 6 versions & 2 rubygems