discourse/db/migrate/20210920044353_add_default_calendar_to_user_options.rb
Krzysztof Kotlarek cb5b0cb9d8
FEATURE: save local date to calendar (#14486)
It allows saving local date to calendar.
Modal is giving option to pick between ics and google. User choice can be remembered as a default for the next actions.
2021-10-06 14:11:52 +11:00

9 lines
265 B
Ruby

# frozen_string_literal: true
class AddDefaultCalendarToUserOptions < ActiveRecord::Migration[6.1]
def change
add_column :user_options, :default_calendar, :integer, default: 0, null: false
add_index :user_options, [:user_id, :default_calendar]
end
end