sutty/db/migrate/20200801233025_add_crawler_to_access_logs.rb

8 lines
188 B
Ruby
Raw Permalink Normal View History

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