2019-05-02 18:17:27 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-08-31 00:06:56 -04:00
|
|
|
class AllowDefaultsOnUsersTable < ActiveRecord::Migration[4.2]
|
2016-02-17 02:08:05 -05:00
|
|
|
def up
|
|
|
|
# we need to temporarily change table a bit to ensure we can insert new records
|
|
|
|
change_column :users, :email_digests, :boolean, null: false, default: true
|
|
|
|
change_column :users, :external_links_in_new_tab, :boolean, null: false, default: false
|
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
|
|
|
end
|
|
|
|
end
|