diff --git a/db/migrate/20200118155319_create_access_log.rb b/db/migrate/20200118155319_create_access_log.rb index 8b4eaf4..029f359 100644 --- a/db/migrate/20200118155319_create_access_log.rb +++ b/db/migrate/20200118155319_create_access_log.rb @@ -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 diff --git a/db/migrate/20200126175158_change_last_modified.rb b/db/migrate/20200126175158_change_last_modified.rb index 93d05de..15e66b0 100644 --- a/db/migrate/20200126175158_change_last_modified.rb +++ b/db/migrate/20200126175158_change_last_modified.rb @@ -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 diff --git a/db/migrate/20200529154040_add_remote_user_to_access_logs.rb b/db/migrate/20200529154040_add_remote_user_to_access_logs.rb index a29b7f7..dabe7d2 100644 --- a/db/migrate/20200529154040_add_remote_user_to_access_logs.rb +++ b/db/migrate/20200529154040_add_remote_user_to_access_logs.rb @@ -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