Implement favoriting of projects

This commit is contained in:
2020-05-29 10:29:20 +02:00
parent c9f93d6fd8
commit 04245d63dc
8 changed files with 86 additions and 4 deletions
+5
View File
@@ -0,0 +1,5 @@
class FavoriteProject < ApplicationRecord
self.primary_key = 'id'
validates :id, uniqueness: true
end