store and display favorite person by tiss_id

This commit is contained in:
Marco Zeisler
2020-04-21 18:06:07 +02:00
parent c32819d819
commit fbfc12e096
31 changed files with 153 additions and 88 deletions
@@ -0,0 +1,9 @@
class CreateFavoritePeople < ActiveRecord::Migration[6.0]
def change
create_table :favorite_people do |t|
t.string :tiss_id
t.timestamps
end
end
end
+7 -1
View File
@@ -10,7 +10,13 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 2020_04_14_101256) do
ActiveRecord::Schema.define(version: 2020_04_21_152314) do
create_table "favorite_people", force: :cascade do |t|
t.string "tiss_id"
t.datetime "created_at", precision: 6, null: false
t.datetime "updated_at", precision: 6, null: false
end
create_table "users", force: :cascade do |t|
t.string "email", default: "", null: false