Add project_registry to the list of uncountables

parent fdb4b1b9
......@@ -10,6 +10,6 @@
# end
#
ActiveSupport::Inflector.inflections do |inflect|
inflect.uncountable %w(award_emoji project_statistics)
inflect.uncountable %w(award_emoji project_statistics project_registry)
inflect.acronym 'EE'
end
class CreateProjectRegistry < ActiveRecord::Migration
def change
create_table :project_registries do |t|
create_table :project_registry do |t|
t.integer :project_id, null: false
t.datetime :last_repository_synced_at
t.datetime :last_repository_successful_sync_at
......
class AddIndexToProjectIdOnProjectRegistries < ActiveRecord::Migration
class AddIndexToProjectIdOnProjectRegistry < ActiveRecord::Migration
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
......@@ -6,10 +6,10 @@ class AddIndexToProjectIdOnProjectRegistries < ActiveRecord::Migration
disable_ddl_transaction!
def up
add_concurrent_index :project_registries, :project_id
add_concurrent_index :project_registry, :project_id
end
def down
remove_index :project_registries, :project_id
remove_index :project_registry, :project_id
end
end
......@@ -15,12 +15,12 @@ ActiveRecord::Schema.define(version: 20170302005747) do
# These are extensions that must be enabled in order to support this database
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.datetime "last_repository_synced_at"
t.datetime "last_repository_successful_sync_at"
t.datetime "created_at", null: false
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
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