mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 11:04:57 +08:00
14 lines
264 B
Ruby
14 lines
264 B
Ruby
|
class AllowNullIpSearchLog < ActiveRecord::Migration[5.1]
|
||
|
def up
|
||
|
begin
|
||
|
Migration::SafeMigrate.disable!
|
||
|
change_column :search_logs, :ip_address, :inet, null: true
|
||
|
ensure
|
||
|
Migration::SafeMigrate.enable!
|
||
|
end
|
||
|
end
|
||
|
|
||
|
def down
|
||
|
end
|
||
|
end
|