5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-22 18:36:23 +00:00
panel/db/migrate/20200801233025_add_crawler_to_access_logs.rb

8 lines
188 B
Ruby
Raw 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