Sha256: 4162a9b758d1e4a2d8b1143766410f75fda9a95537ecaad1e12e9d3998f5b4cc

Contents?: true

Size: 535 Bytes

Versions: 1

Compression:

Stored size: 535 Bytes

Contents

Sequel.migration do
  up do
    run "CREATE TABLE `settings` (
      `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
      `key` varchar(128) NOT NULL,
      `value` varchar(256) NOT NULL,
      `encrypted` tinyint(1) unsigned NOT NULL DEFAULT '0',
      `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
      `updated` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
      PRIMARY KEY (`id`),
      UNIQUE KEY `key` (`key`)
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;"
  end

  down do
    drop_table :settings
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
legion-data-1.2.0 lib/legion/data/migrations/003_add_settings.rb