forgeplus/db/migrate/20210527024043_create_pinne...

12 lines
242 B
Ruby

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