Associations I

Display all tags

Nice work. What did we just do?

  1. We added two string columns title and image to the tags table
  2. We added three string columns name, image, and description to the destinations table
  3. We also added the line t.references :tag to the destinations table. This adds a foreign key pointing to the tags table.
  4. Finally we ran the migrations to update the database, and seeded the database with the data in db/seeds.rb.
Community Forums
Get help and ask questions in the Codecademy Forums
Report a Bug
If you see a bug or any other issue with this page, please report it here.