summaryrefslogtreecommitdiff
path: root/db/migrate/20181028120717_add_first_day_of_week_to_application_settings.rb
blob: e9a8c1011ad205fb59bd82025e8a9eea77cbee17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# frozen_string_literal: true

class AddFirstDayOfWeekToApplicationSettings < ActiveRecord::Migration[5.0]
  include Gitlab::Database::MigrationHelpers
  disable_ddl_transaction!

  DOWNTIME = false

  def up
    add_column_with_default(:application_settings, :first_day_of_week, :integer, default: 0)
  end

  def down
    remove_column(:application_settings, :first_day_of_week)
  end
end