Add the siret column to the services table

This commit is contained in:
gregoirenovel 2018-07-19 15:05:53 +02:00
parent 082e8ed626
commit cfdbeca4da
2 changed files with 7 additions and 1 deletions

View file

@ -0,0 +1,5 @@
class AddSiretToServices < ActiveRecord::Migration[5.2]
def change
add_column :services, :siret, :string
end
end

View file

@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 2018_06_27_092237) do
ActiveRecord::Schema.define(version: 2018_07_19_125038) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@ -541,6 +541,7 @@ ActiveRecord::Schema.define(version: 2018_06_27_092237) do
t.string "telephone"
t.text "horaires"
t.text "adresse"
t.string "siret"
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"
end