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