add departement_to_services migration
This commit is contained in:
parent
1974e35a66
commit
2b061dc2aa
2 changed files with 11 additions and 1 deletions
8
db/migrate/20231025161609_add_departement_to_services.rb
Normal file
8
db/migrate/20231025161609_add_departement_to_services.rb
Normal file
|
@ -0,0 +1,8 @@
|
|||
class AddDepartementToServices < ActiveRecord::Migration[7.0]
|
||||
disable_ddl_transaction!
|
||||
|
||||
def change
|
||||
add_column :services, :departement, :string
|
||||
add_index :services, :departement, algorithm: :concurrently
|
||||
end
|
||||
end
|
|
@ -10,7 +10,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema[7.0].define(version: 2023_10_10_103144) do
|
||||
ActiveRecord::Schema[7.0].define(version: 2023_10_25_161609) do
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "pgcrypto"
|
||||
enable_extension "plpgsql"
|
||||
|
@ -904,6 +904,7 @@ ActiveRecord::Schema[7.0].define(version: 2023_10_10_103144) do
|
|||
t.bigint "administrateur_id"
|
||||
t.text "adresse"
|
||||
t.datetime "created_at", precision: 6, null: false
|
||||
t.string "departement"
|
||||
t.string "email"
|
||||
t.jsonb "etablissement_infos", default: {}
|
||||
t.decimal "etablissement_lat", precision: 10, scale: 6
|
||||
|
@ -917,6 +918,7 @@ ActiveRecord::Schema[7.0].define(version: 2023_10_10_103144) do
|
|||
t.datetime "updated_at", precision: 6, null: false
|
||||
t.index ["administrateur_id", "nom"], name: "index_services_on_administrateur_id_and_nom", unique: true
|
||||
t.index ["administrateur_id"], name: "index_services_on_administrateur_id"
|
||||
t.index ["departement"], name: "index_services_on_departement"
|
||||
end
|
||||
|
||||
create_table "stats", force: :cascade do |t|
|
||||
|
|
Loading…
Add table
Reference in a new issue