summaryrefslogtreecommitdiff
path: root/db/migrate/20210313045617_add_verification_state_and_started_at_to_snippet_repositories.rb
blob: e2d6dff23fa4a5e8967e42fc50601a41c31e9fee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# frozen_string_literal: true

class AddVerificationStateAndStartedAtToSnippetRepositories < ActiveRecord::Migration[6.0]
  DOWNTIME = false

  def change
    change_table(:snippet_repositories) do |t|
      t.integer :verification_state, default: 0, limit: 2, null: false
      t.column :verification_started_at, :datetime_with_timezone
    end
  end
end