Commit graph

12 commits

Author SHA1 Message Date
Nick Thomas
013f7cd24c
Inherit from ApplicationRecord instead of ActiveRecord::Base 2019-03-28 16:18:23 +00:00
gfyoung
50abbd3e53 Enable frozen string in app/models/*.rb
Partially addresses .
2018-07-26 16:55:41 -07:00
Yorick Peterse
5819ca1a24
Added Cop to blacklist polymorphic associations
One should really use a separate table instead of using polymorphic
associations.

See https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/11168 for
more information.
2017-06-07 17:36:55 +02:00
Douglas Barbosa Alexandre
0aac2e0706 Allow subscriptions to be created without a project 2016-11-17 15:10:13 -02:00
Douglas Barbosa Alexandre
bde0202693 Add unique index to subscriptions on subscribable and user and project 2016-11-17 15:10:12 -02:00
Douglas Barbosa Alexandre
4fcae04f7b Add project_id to subscriptions 2016-11-17 15:10:12 -02:00
Jeroen van Baarsen
f1479b56b7
Remove the annotate gem and delete old annotations
In 8278b763d9 the default behaviour of annotation
has changes, which was causing a lot of noise in diffs. We decided in 
that it is better to get rid of the whole annotate gem, and instead let people
look at schema.rb for the columns in a table.

Fixes: 
2016-05-09 18:00:28 +02:00
Zeger-Jan van de Weg
47da013cf8 Annotate the models 2016-05-06 08:27:46 +02:00
Rémy Coutable
54ec7e9599 Improving the original label-subscribing implementation
1. Make the "subscribed" text in Issuable sidebar reflect the labels
   subscription status

2. Current user mut be logged-in to toggle issue/MR/label subscription
2016-03-15 18:22:02 +01:00
Valery Sizov
1b437ec349 tests 2015-03-16 21:38:41 +02:00
Valery Sizov
f53683e67f fix specs 2015-03-16 16:51:49 +02:00
Valery Sizov
410d25c8ca rename table subscribe; make it polymorfic 2015-03-16 15:22:50 +02:00