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
@@ -0,0 +1,12 @@
class CreateFavoriteProjects < ActiveRecord::Migration[6.0]
def change
create_table :favorite_projects, id: false do |t|
t.integer :id, null: false
t.integer :user_id, null: false
t.string :title
t.timestamps
end
add_index :favorite_projects, :id, unique: true
end
end