dawarich/db/migrate/20240712141303_add_geodata_to_points.rb
2024-07-12 21:59:03 +02:00

8 lines
222 B
Ruby

# 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