mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 09:41:40 -05:00
8 lines
278 B
Ruby
8 lines
278 B
Ruby
# frozen_string_literal: true
|
|
|
|
class AddH3HexIdsToStats < ActiveRecord::Migration[8.0]
|
|
def change
|
|
add_column :stats, :h3_hex_ids, :jsonb, default: {}
|
|
add_index :stats, :h3_hex_ids, using: :gin, where: "(h3_hex_ids IS NOT NULL AND h3_hex_ids != '{}'::jsonb)"
|
|
end
|
|
end
|