mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 05:06:21 +00:00
no crear la tabla de access logs en desarrollo
This commit is contained in:
parent
0c56ebd468
commit
bc5ac322f7
3 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue