Sha256: d9cb7a4ffc78ec65d1de34fb44767d168b1292806cbab68120a07702e1a8910d
Contents?: true
Size: 682 Bytes
Versions: 2
Compression:
Stored size: 682 Bytes
Contents
Sequel.migration do up do run "CREATE TABLE `nodes` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `active` tinyint(1) unsigned NOT NULL DEFAULT '1', `name` varchar(128) NOT NULL DEFAULT '', `datacenter_id` int(11) unsigned DEFAULT NULL, `environment_id` int(11) unsigned DEFAULT NULL, `status` varchar(255) NOT NULL DEFAULT 'unknown', `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`), KEY `status` (`status`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;" end down do drop_table :nodes end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
legion-data-0.1.1 | lib/legion/data/migrations/007_add_nodes_table.rb |
legion-data-0.1.0 | lib/legion/data/migrations/007_add_nodes_table.rb |