Change layout of favorites

This commit is contained in:
2020-05-07 11:57:39 +02:00
parent c8902d12ac
commit d111a371ae
5 changed files with 39 additions and 10 deletions
@@ -1,9 +1,14 @@
class CreateFavoritePeople < ActiveRecord::Migration[6.0]
def change
create_table :favorite_people do |t|
t.string :tiss_id
create_table :favorite_people, id: false do |t|
t.string :tiss_id, null: false
t.string :first_name
t.string :last_name
t.string :picture_uri
t.timestamps
end
add_index :favorite_people, :tiss_id, unique: true
end
end