discourse/db/migrate/20210920044353_add_default_...

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
264 B
Ruby
Raw Normal View History

# 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, %i[user_id default_calendar]
end
end