add: user pinned projects

This commit is contained in:
2021-05-27 14:23:59 +08:00
committed by viletyy
parent 422fd35f1e
commit ea79772bd2
12 changed files with 544 additions and 91 deletions

View File

@@ -0,0 +1,22 @@
# == Schema Information
#
# Table name: pinned_projects
#
# id :integer not null, primary key
# user_id :integer
# project_id :integer
# position :integer default("0")
# created_at :datetime not null
# updated_at :datetime not null
#
# Indexes
#
# index_pinned_projects_on_project_id (project_id)
# index_pinned_projects_on_user_id (user_id)
#
class PinnedProject < ApplicationRecord
belongs_to :user
belongs_to :project
end