mirror of
https://github.com/discourse/discourse.git
synced 2026-08-05 23:04:22 +08:00
13 lines
269 B
Ruby
Vendored
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
|