Sha256: 25b74d3788df11909db05f40bf22994e90a2ff9c42d41c31b6342d0382dc04c1
Contents?: true
Size: 641 Bytes
Versions: 2
Compression:
Stored size: 641 Bytes
Contents
Sequel.migration do up do run "CREATE TABLE `chains` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(128) NOT NULL DEFAULT '', `active` tinyint(1) unsigned DEFAULT '1', `version` int(11) unsigned NOT NULL DEFAULT '1', `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP, `user_owner` int(11) unsigned DEFAULT NULL, `group_owner` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`), KEY `active` (`active`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;" end down do drop_table :chains end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
legion-data-0.1.1 | lib/legion/data/migrations/002_add_chains_table.rb |
legion-data-0.1.0 | lib/legion/data/migrations/002_add_chains_table.rb |