dawarich/db/migrate/20241202114820_add_reverse_geocoded_at_to_points.rb
2024-12-11 14:21:44 +01:00

12 lines
335 B
Ruby

# frozen_string_literal: true
class AddReverseGeocodedAtToPoints < ActiveRecord::Migration[7.2]
disable_ddl_transaction!
def change
return if column_exists?(:points, :reverse_geocoded_at)
add_column :points, :reverse_geocoded_at, :datetime
add_index :points, :reverse_geocoded_at, algorithm: :concurrently
end
end