debian-mirror-gitlab/db/migrate/20181028120717_add_first_day_of_week_to_application_settings.rb

17 lines
391 B
Ruby
Raw Normal View History

2019-03-02 22:35:43 +05:30
# frozen_string_literal: true
2019-05-18 00:54:41 +05:30
class AddFirstDayOfWeekToApplicationSettings < ActiveRecord::Migration[5.0]
2019-03-02 22:35:43 +05:30
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