create favorite projects table

This commit is contained in:
Pfingstfrosch
2020-05-29 16:30:24 +02:00
parent 724a13347c
commit bfd58dc7c1
2 changed files with 20 additions and 1 deletions
@@ -0,0 +1,11 @@
class CreateFavoriteProjects < ActiveRecord::Migration[6.0]
def change
create_table :favorite_projects do |t|
t.integer :user_id, null: false
t.string :title
t.timestamps
end
add_index :favorite_projects, :id, unique: true
end
end