2019-05-02 18:17:27 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-05-21 15:04:55 -04:00
|
|
|
class AllowNullIpTopicLinkClick < ActiveRecord::Migration[5.1]
|
|
|
|
def up
|
|
|
|
begin
|
|
|
|
Migration::SafeMigrate.disable!
|
|
|
|
change_column :topic_link_clicks, :ip_address, :inet, null: true
|
|
|
|
ensure
|
|
|
|
Migration::SafeMigrate.enable!
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|