mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-23 02:06:22 +00:00
12 lines
307 B
Ruby
12 lines
307 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
# Con access_log v0.3 podemos decidir la política de retención de
|
||
|
# referencias.
|
||
|
class AddHttpRefererToAccessLogs < ActiveRecord::Migration[6.0]
|
||
|
def change
|
||
|
return unless Rails.env.production?
|
||
|
|
||
|
add_column :access_logs, :http_referer, :string, index: true
|
||
|
end
|
||
|
end
|