about summary refs log tree commit diff
path: root/db/post_migrate/20210507001928_remove_hub_url_from_accounts.rb
blob: 83a1f5fcf3af49b3d5bf8defee9eb550ac44b34c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
# frozen_string_literal: true

class RemoveHubURLFromAccounts < ActiveRecord::Migration[5.2]
  def change
    safety_assured do
      remove_column :accounts, :secret, :string, null: false, default: ''
      remove_column :accounts, :remote_url, :string, null: false, default: ''
      remove_column :accounts, :salmon_url, :string, null: false, default: ''
      remove_column :accounts, :hub_url, :string, null: false, default: ''
    end
  end
end