Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby Active Record Associations in Rails Active Record Associations Has Many Associations

on the rollback section, there seems to be an error in my file

this is the error that keeps popping up: Caused by: SQLite3::SQLException: table "comments" already exists /Users/rojinapradhan/R7-blog/db/migrate/20240108165257_create_comments.rb:3:in `change' Tasks: TOP => db:migrate

and the migration shows that there is a comments table class CreateComments < ActiveRecord::Migration[7.0] def change create_table :comments do |t| t.text :content t.string :name

  t.timestamps
end

end end