sutty/db/migrate/20210722191718_add_request_uri_to_access_logs.rb

11 lines
276 B
Ruby
Raw Permalink Normal View History

# 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