0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-05 23:04:22 +08:00
discourse/db/migrate/20180521184439_allow_null_ip_search_log.rb
Jarek Radosz fbb3bf3fe8
DEV: Enable Style/RedundantBegin rubocop rule (#40096)
(to be enabled in the shared config)

best reviewed with whitespace disabled
2026-05-19 18:44:54 +02:00

13 lines
269 B
Ruby
Vendored

# frozen_string_literal: true
class AllowNullIpSearchLog < ActiveRecord::Migration[5.1]
def up
Migration::SafeMigrate.disable!
change_column :search_logs, :ip_address, :inet, null: true
ensure
Migration::SafeMigrate.enable!
end
def down
end
end