Service: add organisme, email, tel, horaires, adresse

This commit is contained in:
simon lehericey 2018-05-10 11:38:11 +02:00
parent 0be21395ac
commit 39bb56d1d9
8 changed files with 66 additions and 2 deletions

View file

@ -0,0 +1,9 @@
class AddColumnsToService < ActiveRecord::Migration[5.2]
def change
add_column :services, :organisme, :string
add_column :services, :email, :string
add_column :services, :telephone, :string
add_column :services, :horaires, :text
add_column :services, :adresse, :text
end
end

View file

@ -519,6 +519,11 @@ ActiveRecord::Schema.define(version: 2018_05_15_135415) do
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.bigint "administrateur_id"
t.string "organisme"
t.string "email"
t.string "telephone"
t.text "horaires"
t.text "adresse"
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