agregar request_uri a los logs sutty/containers/nginx!1
This commit is contained in:
parent
5c36de818f
commit
d474b819ad
1 changed files with 10 additions and 0 deletions
10
db/migrate/20210722191718_add_request_uri_to_access_logs.rb
Normal file
10
db/migrate/20210722191718_add_request_uri_to_access_logs.rb
Normal file
|
@ -0,0 +1,10 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
# Agrega la columna de request_uri a la tabla de logs
|
||||
class AddRequestUriToAccessLogs < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
return unless Rails.env.production?
|
||||
|
||||
add_column :access_logs, :request_uri, :string, default: ''
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue