Error: PG::DuplicateTable: ERROR: relation "taggings" already exists
Solution :
Already the table present in your database.But migration also trying to create a table in database.For this reason error occurred. So try to remove the table (taggings) from your database.
postgresql :
Rails console :
Solution :
Already the table present in your database.But migration also trying to create a table in database.For this reason error occurred. So try to remove the table (taggings) from your database.
postgresql :
> DROP TABLE IF EXISTS taggings;
Rails console :
> ActiveRecord::Migration.drop_table(:taggings)
very informative blog and useful article thank you for sharing with us , keep posting Ruby on Rails Online Course India
ReplyDelete