Sha256: 89ddc7f9ea849f1ef643426498f98d4794abbeb84eff16bdc2f3f19e09a00583

Contents?: true

Size: 747 Bytes

Versions: 2

Compression:

Stored size: 747 Bytes

Contents

Sequel.migration do
  up do
    run "CREATE TABLE `namespaces` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `active` tinyint(1) unsigned NOT NULL DEFAULT '1',
  `namespace` varchar(128) NOT NULL DEFAULT '',
  `queue` varchar(128) NOT NULL DEFAULT '',
  `uri` varchar(128) DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `group_owner` int(11) unsigned DEFAULT NULL,
  `user_owner` int(11) unsigned DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `namespace` (`namespace`),
  KEY `active` (`active`),
  KEY `queue` (`queue`),
  KEY `uri` (`uri`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;"
  end

  down do
    drop_table :namespaces
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
legion-data-0.1.1 lib/legion/data/migrations/006_add_namespaces_table.rb
legion-data-0.1.0 lib/legion/data/migrations/006_add_namespaces_table.rb