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

20170717200542_add_trusted_column_to_oauth_applications.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d9ae86f6c52d66c59920bfc643cba8f5e7fe5b85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
class AddTrustedColumnToOauthApplications < ActiveRecord::Migration[4.2]
  include Gitlab::Database::MigrationHelpers

  DOWNTIME = false

  disable_ddl_transaction!

  def up
    add_column_with_default(:oauth_applications, :trusted, :boolean, default: false)
  end

  def down
    remove_column(:oauth_applications, :trusted)
  end
end