5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-21 22:46:21 +00:00

no crear la tabla de access logs en desarrollo

This commit is contained in:
f 2020-09-12 19:52:02 -03:00
parent 0c56ebd468
commit bc5ac322f7
3 changed files with 6 additions and 0 deletions

View file

@ -2,6 +2,8 @@
class CreateAccessLog < ActiveRecord::Migration[6.0]
def change
return unless Rails.env.production?
create_table :access_logs, id: :uuid do |t|
t.string :host, index: true

View file

@ -2,6 +2,8 @@
class ChangeLastModified < ActiveRecord::Migration[6.0]
def change
return unless Rails.env.production?
change_column :access_logs, :sent_http_last_modified, :string
end
end

View file

@ -1,5 +1,7 @@
class AddRemoteUserToAccessLogs < ActiveRecord::Migration[6.0]
def change
return unless Rails.env.production?
add_column :access_logs, :remote_user, :string
end
end