Add project_registry to the list of uncountables

parent fdb4b1b9
...@@ -10,6 +10,6 @@ ...@@ -10,6 +10,6 @@
# end # end
# #
ActiveSupport::Inflector.inflections do |inflect| ActiveSupport::Inflector.inflections do |inflect|
inflect.uncountable %w(award_emoji project_statistics) inflect.uncountable %w(award_emoji project_statistics project_registry)
inflect.acronym 'EE' inflect.acronym 'EE'
end end
class CreateProjectRegistry < ActiveRecord::Migration class CreateProjectRegistry < ActiveRecord::Migration
def change def change
create_table :project_registries do |t| create_table :project_registry do |t|
t.integer :project_id, null: false t.integer :project_id, null: false
t.datetime :last_repository_synced_at t.datetime :last_repository_synced_at
t.datetime :last_repository_successful_sync_at t.datetime :last_repository_successful_sync_at
......
class AddIndexToProjectIdOnProjectRegistries < ActiveRecord::Migration class AddIndexToProjectIdOnProjectRegistry < ActiveRecord::Migration
include Gitlab::Database::MigrationHelpers include Gitlab::Database::MigrationHelpers
DOWNTIME = false DOWNTIME = false
...@@ -6,10 +6,10 @@ class AddIndexToProjectIdOnProjectRegistries < ActiveRecord::Migration ...@@ -6,10 +6,10 @@ class AddIndexToProjectIdOnProjectRegistries < ActiveRecord::Migration
disable_ddl_transaction! disable_ddl_transaction!
def up def up
add_concurrent_index :project_registries, :project_id add_concurrent_index :project_registry, :project_id
end end
def down def down
remove_index :project_registries, :project_id remove_index :project_registry, :project_id
end end
end end
...@@ -15,12 +15,12 @@ ActiveRecord::Schema.define(version: 20170302005747) do ...@@ -15,12 +15,12 @@ ActiveRecord::Schema.define(version: 20170302005747) 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"
create_table "project_registries", force: :cascade do |t| create_table "project_registry", force: :cascade do |t|
t.integer "project_id", null: false t.integer "project_id", null: false
t.datetime "last_repository_synced_at" t.datetime "last_repository_synced_at"
t.datetime "last_repository_successful_sync_at" t.datetime "last_repository_successful_sync_at"
t.datetime "created_at", null: false t.datetime "created_at", null: false
end end
add_index "project_registries", ["project_id"], name: "index_project_registries_on_project_id", using: :btree add_index "project_registry", ["project_id"], name: "index_project_registry_on_project_id", using: :btree
end end
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