Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20160811172945_add_can_push_to_keys.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5fd303fe8fbdfd2fd5d499721fb78ff49f9acbcc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
class AddCanPushToKeys < ActiveRecord::Migration
  include Gitlab::Database::MigrationHelpers
  disable_ddl_transaction!

  DOWNTIME = false

  def up
    add_column_with_default(:keys, :can_push, :boolean, default: false, allow_null: false)
  end

  def down
    remove_column(:keys, :can_push)
  end
end