Rename columns on the geo_repository_renamed_events table

parent 3032178e
...@@ -5,8 +5,8 @@ module Geo ...@@ -5,8 +5,8 @@ module Geo
belongs_to :project belongs_to :project
validates :project, :repository_storage_name, :repository_storage_path, validates :project, :repository_storage_name, :repository_storage_path,
:old_repo_path_with_namespace, :new_repo_path_with_namespace, :old_path_with_namespace, :new_path_with_namespace,
:old_wiki_path_with_namespace, :new_wiki_path_with_namespace, :old_wiki_path_with_namespace, :new_wiki_path_with_namespace,
:old_project_name, :new_project_name, presence: true :old_path, :new_path, presence: true
end end
end end
...@@ -8,12 +8,12 @@ class CreateGeoRepositoryRenamedEvents < ActiveRecord::Migration ...@@ -8,12 +8,12 @@ class CreateGeoRepositoryRenamedEvents < ActiveRecord::Migration
t.references :project, index: true, foreign_key: { on_delete: :cascade }, null: false t.references :project, index: true, foreign_key: { on_delete: :cascade }, null: false
t.text :repository_storage_name, null: false t.text :repository_storage_name, null: false
t.text :repository_storage_path, null: false t.text :repository_storage_path, null: false
t.text :old_repo_path_with_namespace, null: false t.text :old_path_with_namespace, null: false
t.text :new_repo_path_with_namespace, null: false t.text :new_path_with_namespace, null: false
t.text :old_wiki_path_with_namespace, null: false t.text :old_wiki_path_with_namespace, null: false
t.text :new_wiki_path_with_namespace, null: false t.text :new_wiki_path_with_namespace, null: false
t.text :old_project_name, null: false t.text :old_path, null: false
t.text :new_project_name, null: false t.text :new_path, null: false
end end
add_column :geo_event_log, :repository_renamed_event_id, :integer, limit: 8 add_column :geo_event_log, :repository_renamed_event_id, :integer, limit: 8
......
...@@ -630,12 +630,12 @@ ActiveRecord::Schema.define(version: 20170627211700) do ...@@ -630,12 +630,12 @@ ActiveRecord::Schema.define(version: 20170627211700) do
t.integer "project_id", null: false t.integer "project_id", null: false
t.text "repository_storage_name", null: false t.text "repository_storage_name", null: false
t.text "repository_storage_path", null: false t.text "repository_storage_path", null: false
t.text "old_repo_path_with_namespace", null: false t.text "old_path_with_namespace", null: false
t.text "new_repo_path_with_namespace", null: false t.text "new_path_with_namespace", null: false
t.text "old_wiki_path_with_namespace", null: false t.text "old_wiki_path_with_namespace", null: false
t.text "new_wiki_path_with_namespace", null: false t.text "new_wiki_path_with_namespace", null: false
t.text "old_project_name", null: false t.text "old_path", null: false
t.text "new_project_name", null: false t.text "new_path", null: false
end end
add_index "geo_repository_renamed_events", ["project_id"], name: "index_geo_repository_renamed_events_on_project_id", using: :btree add_index "geo_repository_renamed_events", ["project_id"], name: "index_geo_repository_renamed_events_on_project_id", using: :btree
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment