mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
add: user pinned projects
This commit is contained in:
11
db/migrate/20210527024043_create_pinned_projects.rb
Normal file
11
db/migrate/20210527024043_create_pinned_projects.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
class CreatePinnedProjects < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
create_table :pinned_projects do |t|
|
||||
t.references :user
|
||||
t.references :project
|
||||
t.integer :position, default: 0
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user