discourse/db/migrate/20180521190040_allow_null_i...

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

17 lines
352 B
Ruby
Raw Normal View History

# frozen_string_literal: true
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
def down
raise ActiveRecord::IrreversibleMigration
end
end