16 lines
398 B
Ruby
16 lines
398 B
Ruby
class CreateFavoritePeople < ActiveRecord::Migration[6.0]
|
|
def change
|
|
create_table :favorite_people, primary_key: [:tiss_id, :user_id] do |t|
|
|
t.integer :tiss_id, null: false
|
|
t.belongs_to :user
|
|
t.string :first_name
|
|
t.string :last_name
|
|
t.string :picture_uri
|
|
t.string :personal_annotation
|
|
t.string :personal_keyword
|
|
|
|
t.timestamps
|
|
end
|
|
end
|
|
end
|