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]
|
class CreateAccessLog < ActiveRecord::Migration[6.0]
|
||||||
def change
|
def change
|
||||||
|
return unless Rails.env.production?
|
||||||
|
|
||||||
create_table :access_logs, id: :uuid do |t|
|
create_table :access_logs, id: :uuid do |t|
|
||||||
t.string :host, index: true
|
t.string :host, index: true
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
class ChangeLastModified < ActiveRecord::Migration[6.0]
|
class ChangeLastModified < ActiveRecord::Migration[6.0]
|
||||||
def change
|
def change
|
||||||
|
return unless Rails.env.production?
|
||||||
|
|
||||||
change_column :access_logs, :sent_http_last_modified, :string
|
change_column :access_logs, :sent_http_last_modified, :string
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
class AddRemoteUserToAccessLogs < ActiveRecord::Migration[6.0]
|
class AddRemoteUserToAccessLogs < ActiveRecord::Migration[6.0]
|
||||||
def change
|
def change
|
||||||
|
return unless Rails.env.production?
|
||||||
|
|
||||||
add_column :access_logs, :remote_user, :string
|
add_column :access_logs, :remote_user, :string
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue