From a55072813981938ce46f3fc35785eb1323f0b718 Mon Sep 17 00:00:00 2001 From: JG Date: Thu, 30 Jun 2022 12:48:27 +0100 Subject: [PATCH] added name to locations --- db/migrate/20220630114748_add_name_to_locations.rb | 5 +++++ db/schema.rb | 1 + 2 files changed, 6 insertions(+) create mode 100644 db/migrate/20220630114748_add_name_to_locations.rb diff --git a/db/migrate/20220630114748_add_name_to_locations.rb b/db/migrate/20220630114748_add_name_to_locations.rb new file mode 100644 index 000000000..aed8aa83a --- /dev/null +++ b/db/migrate/20220630114748_add_name_to_locations.rb @@ -0,0 +1,5 @@ +class AddNameToLocations < ActiveRecord::Migration[7.0] + def change + add_column :locations, :name, :string + end +end diff --git a/db/schema.rb b/db/schema.rb index b38a76b1a..746725689 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -247,6 +247,7 @@ ActiveRecord::Schema[7.0].define(version: 2022_07_04_135746) do t.string "county" t.datetime "created_at", null: false t.datetime "updated_at", null: false + t.string "name" t.index ["scheme_id"], name: "index_locations_on_scheme_id" end