dawarich/db/migrate/20240712141303_add_geodata_to_points.rb

9 lines
222 B
Ruby
Raw Normal View History

2024-07-12 15:59:03 -04:00
# frozen_string_literal: true
class AddGeodataToPoints < ActiveRecord::Migration[7.1]
def change
add_column :points, :geodata, :jsonb, null: false, default: {}
add_index :points, :geodata, using: :gin
end
end