mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-15 03:31:42 +00:00
ahora tenemos referrer policy en access_log
This commit is contained in:
parent
3a7ab15d2b
commit
e21ccfd29e
1 changed files with 11 additions and 0 deletions
11
db/migrate/20200816003344_add_http_referer_to_access_logs.rb
Normal file
11
db/migrate/20200816003344_add_http_referer_to_access_logs.rb
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
# 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
|
Loading…
Reference in a new issue