Commit 19557e8c authored by Stan Hu's avatar Stan Hu

Clean up tracking DB with FileRegistry entries to redownload files

parent c3bf1e21
class RemoveFileUploadsFromRegistry < ActiveRecord::Migration
# Previous to GitLab 10.0, GitLab would save attachments/avatars to the wrong
# directory. Destroy these entries so they will be downloaded again.
def change
Geo::FileRegistry.destroy_all
end
end
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
# #
# It's strongly recommended that you check this file into your version control system. # It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20170906182752) do ActiveRecord::Schema.define(version: 20171005045404) do
# These are extensions that must be enabled in order to support this database # These are extensions that must be enabled in order to support this database
enable_extension "plpgsql" enable_extension "plpgsql"
......
...@@ -141,7 +141,7 @@ The database configuration is set in `config/database_geo.yml`. ...@@ -141,7 +141,7 @@ The database configuration is set in `config/database_geo.yml`.
To write a migration for the database, use the `GeoMigrationGenerator`: To write a migration for the database, use the `GeoMigrationGenerator`:
``` ```
rails g geo_generator [args] [options] rails g geo_generation [args] [options]
``` ```
To migrate the tracking database, run: To migrate the tracking database, run:
......
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