Sha256: 4dbb0125cba7419fe9facafc72ce4942b24090ed347f0885f943b09204bf0d92
Contents?: true
Size: 932 Bytes
Versions: 2
Compression:
Stored size: 932 Bytes
Contents
Sequel.migration do up do run "CREATE TABLE `relationships` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `active` tinyint(1) unsigned NOT NULL DEFAULT '1', `name` varchar(128) DEFAULT NULL, `chain_id` int(11) unsigned DEFAULT NULL, `trigger_id` int(11) unsigned NOT NULL, `action_id` int(11) unsigned NOT NULL, `delay` int(11) unsigned NOT NULL DEFAULT '0', `conditions` text, `transformation` text, `version` tinyint(5) unsigned NOT NULL DEFAULT '1', `created_timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `updated_timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `group_owner` int(11) unsigned DEFAULT NULL, `user_owner` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`), KEY `active` (`active`), KEY `name` (`name`), KEY `deplay` (`delay`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;" end down do drop_table :relationships end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
legion-data-0.1.1 | lib/legion/data/migrations/008_add_relationships_table.rb |
legion-data-0.1.0 | lib/legion/data/migrations/008_add_relationships_table.rb |