Sha256: b18e22ff171094242aabce9b0ce28ef81806f718eb7afcbc567fea1429d18911

Contents?: true

Size: 660 Bytes

Versions: 2

Compression:

Stored size: 660 Bytes

Contents

Sequel.migration do
  up do
    run "CREATE TABLE `datacenters` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `active` tinyint(1) unsigned NOT NULL DEFAULT '1',
  `version` int(11) unsigned NOT NULL DEFAULT '1',
  `name` varchar(128) NOT NULL DEFAULT '',
  `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 :datacenters
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
legion-data-0.1.1 lib/legion/data/migrations/003_add_datacenters_table.rb
legion-data-0.1.0 lib/legion/data/migrations/003_add_datacenters_table.rb