aboutsummaryrefslogtreecommitdiff
path: root/db/migrate/20180530191341_create_govuk_guix_data_snapshots.rb
blob: 3327127648db579eccc40c823b93022f979491c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
class CreateGovukGuixDataSnapshots < ActiveRecord::Migration[5.1]
  def change
    create_table :govuk_guix_data_snapshots do |t|
      t.string :store_path, null: false
      t.boolean :archived, default: false, null: false
      t.json :manifest, null: false

      t.timestamps
    end

    add_index :govuk_guix_data_snapshots, :store_path, unique: true
  end
end