dawarich/db/migrate/20250513164521_add_visited_countries_to_trips.rb
2025-11-09 23:08:10 +01:00

11 lines
274 B
Ruby

# frozen_string_literal: true
class AddVisitedCountriesToTrips < ActiveRecord::Migration[8.0]
def change
# safety_assured do
execute <<-SQL
ALTER TABLE trips ADD COLUMN visited_countries JSONB DEFAULT '{}'::jsonb NOT NULL;
SQL
# end
end
end