dawarich/db/migrate/20241202114820_add_reverse_geocoded_at_to_points.rb

13 lines
335 B
Ruby
Raw Permalink Normal View History

# frozen_string_literal: true
class AddReverseGeocodedAtToPoints < ActiveRecord::Migration[7.2]
disable_ddl_transaction!
def change
2024-12-11 08:21:44 -05:00
return if column_exists?(:points, :reverse_geocoded_at)
2024-12-11 08:21:44 -05:00
add_column :points, :reverse_geocoded_at, :datetime
add_index :points, :reverse_geocoded_at, algorithm: :concurrently
end
end