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

class AddSecretTokenToSnippet < ActiveRecord::Migration[5.2]
  DOWNTIME = false

  # rubocop:disable Migration/PreventStrings
  def change
    add_column :snippets, :encrypted_secret_token, :string, limit: 255
    add_column :snippets, :encrypted_secret_token_iv, :string, limit: 255
  end
  # rubocop:enable Migration/PreventStrings
end