Sha256: acb92356bd1ccf18ffede1ba887b828c9be649987ef1c3f36e5d754788a1931d
Contents?: true
Size: 859 Bytes
Versions: 1
Compression:
Stored size: 859 Bytes
Contents
Sequel.migration do up do run "CREATE TABLE `tasks` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `relationship_id` int(11) unsigned NOT NULL, `status` varchar(255) NOT NULL, `parent_id` int(11) unsigned DEFAULT NULL, `master_id` int(11) unsigned DEFAULT NULL, `args` text, `results` text, `created` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, `updated` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`), KEY `status` (`status`), KEY `parent_id` (`parent_id`), KEY `master_id` (`master_id`), CONSTRAINT `parent_id` FOREIGN KEY (`parent_id`) REFERENCES `tasks` (`id`) ON DELETE SET NULL ON UPDATE CASCADE, CONSTRAINT `master_id` FOREIGN KEY (`master_id`) REFERENCES `tasks` (`id`) ON DELETE SET NULL ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8;" end down do drop :tasks end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
legion-data-0.2.0 | lib/legion/data/migrations/012_add_tasks.rb |