discourse/db/migrate/20180521184439_allow_null_i...

16 lines
295 B
Ruby
Raw Normal View History

# frozen_string_literal: true
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