2020-08-04 16:00:07 +00:00
|
|
|
class AddCrawlerToAccessLogs < ActiveRecord::Migration[6.0]
|
|
|
|
def change
|
2020-08-18 13:17:13 +00:00
|
|
|
return unless Rails.env.production?
|
|
|
|
|
2020-08-04 16:00:07 +00:00
|
|
|
add_column :access_logs, :crawler, :boolean, default: false
|
|
|
|
end
|
|
|
|
end
|