mirror of
https://github.com/SrIzan10/hc-harbor.git
synced 2026-05-01 10:45:21 +00:00
8 lines
333 B
Ruby
8 lines
333 B
Ruby
class CreateAhoyCaptainIndexes < ActiveRecord::Migration[8.0]
|
|
def change
|
|
add_index :ahoy_visits, :started_at unless index_exists?(:ahoy_visits, :started_at)
|
|
add_index :ahoy_events, :visit_id unless index_exists?(:ahoy_events, :visit_id)
|
|
add_index :ahoy_events, :time unless index_exists?(:ahoy_events, :time)
|
|
end
|
|
end
|