mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 01:01:39 -05:00
12 lines
335 B
Ruby
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
|