From eb3ed7f6fdb455410f42152c521b2ed93cb7ef14 Mon Sep 17 00:00:00 2001 From: Gerhard Schlager Date: Mon, 8 Oct 2018 16:40:05 +0200 Subject: [PATCH] Add missing annotations --- app/models/tag.rb | 3 ++- app/models/user_upload.rb | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/app/models/tag.rb b/app/models/tag.rb index f2ca7f067e3..ec42d1a62c5 100644 --- a/app/models/tag.rb +++ b/app/models/tag.rb @@ -158,5 +158,6 @@ end # # Indexes # -# index_tags_on_name (name) UNIQUE +# index_tags_on_lower_name (lower((name)::text)) UNIQUE +# index_tags_on_name (name) UNIQUE # diff --git a/app/models/user_upload.rb b/app/models/user_upload.rb index a72de8a0c6d..c60b724b91c 100644 --- a/app/models/user_upload.rb +++ b/app/models/user_upload.rb @@ -2,3 +2,17 @@ class UserUpload < ActiveRecord::Base belongs_to :upload belongs_to :user end + +# == Schema Information +# +# Table name: user_uploads +# +# id :bigint(8) not null, primary key +# upload_id :integer not null +# user_id :integer not null +# created_at :datetime not null +# +# Indexes +# +# index_user_uploads_on_upload_id_and_user_id (upload_id,user_id) UNIQUE +#