demarches-normaliennes/db/migrate/20220725090224_add_etablissement_infos_to_services.rb

8 lines
320 B
Ruby
Raw Normal View History

class AddEtablissementInfosToServices < ActiveRecord::Migration[6.1]
def change
add_column :services, :etablissement_infos, :jsonb, default: {}
add_column :services, :etablissement_lat, :decimal, precision: 10, scale: 6
add_column :services, :etablissement_lng, :decimal, precision: 10, scale: 6
end
end