Service: add organisme, email, tel, horaires, adresse
This commit is contained in:
parent
0be21395ac
commit
39bb56d1d9
8 changed files with 66 additions and 2 deletions
9
db/migrate/20180509152919_add_columns_to_service.rb
Normal file
9
db/migrate/20180509152919_add_columns_to_service.rb
Normal 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
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue