> rails c
> ActiveRecord::Base.connection.tables
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 : > DROP TABLE IF EXISTS taggings; Rails console : > ActiveRecord::Migration.drop_table(:taggings)
Comments
Post a Comment