Sha256: 8cb22a6e647c845143cf1c3ae44200cc6d2654180d091bb7ce3a2d5149e13d73

Contents?: true

Size: 582 Bytes

Versions: 2

Compression:

Stored size: 582 Bytes

Contents

Sequel.migration do
  up do
    run "CREATE TABLE `tasks` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `status` varchar(64) NOT NULL DEFAULT 'created',
  `payload` text,
  `parent_id` int(11) unsigned DEFAULT NULL,
  `master_id` int(11) unsigned DEFAULT NULL,
  `version` tinyint(5) NOT NULL DEFAULT '1',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `status` (`status`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;"
  end

  down do
    drop_table :tasks
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
legion-data-0.1.1 lib/legion/data/migrations/010_add_tasks_table.rb
legion-data-0.1.0 lib/legion/data/migrations/010_add_tasks_table.rb