mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 12:13:58 -06:00
11 lines
257 B
Ruby
11 lines
257 B
Ruby
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
|