2019-01-10 21:06:42 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2019-02-09 15:40:03 +00:00
|
|
|
class AddFirstDayOfWeekToApplicationSettings < ActiveRecord::Migration[5.0]
|
2019-01-10 21:06:42 +00:00
|
|
|
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
|