mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-15 06:01:42 +00:00
Merge branch 'request-uri' into 'rails'
agregar request_uri a los logs See merge request sutty/sutty!49
This commit is contained in:
commit
6448a881ac
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