From 2989192d1aa8051aa09164cd097418bd3063d4ad Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Sat, 4 Feb 2017 20:26:11 +0200 Subject: Store group and project full name and full path in routes table Signed-off-by: Dmitriy Zaporozhets --- db/migrate/20170204172458_add_name_to_route.rb | 12 ++++++++++++ db/schema.rb | 1 + 2 files changed, 13 insertions(+) create mode 100644 db/migrate/20170204172458_add_name_to_route.rb (limited to 'db') diff --git a/db/migrate/20170204172458_add_name_to_route.rb b/db/migrate/20170204172458_add_name_to_route.rb new file mode 100644 index 00000000000..38ed1ad9039 --- /dev/null +++ b/db/migrate/20170204172458_add_name_to_route.rb @@ -0,0 +1,12 @@ +# See http://doc.gitlab.com/ce/development/migration_style_guide.html +# for more information on how to write migrations for GitLab. + +class AddNameToRoute < ActiveRecord::Migration + include Gitlab::Database::MigrationHelpers + + DOWNTIME = false + + def change + add_column :routes, :name, :string + end +end diff --git a/db/schema.rb b/db/schema.rb index 850772ba356..3fef5b82073 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -1037,6 +1037,7 @@ ActiveRecord::Schema.define(version: 20170206101030) do t.string "path", null: false t.datetime "created_at" t.datetime "updated_at" + t.string "name" end add_index "routes", ["path"], name: "index_routes_on_path", unique: true, using: :btree -- cgit v1.2.3