I recently renamed a schema named favourites using
rails g migration rename_favourites_to_favourite_cocktails In the migration file generated I did this
rename_table :favourites, :favouriteCocktails
rename_table :favouriteCocktails, :favourites
then I ranrails db:migrate
. At the rails console I decide to checkout if the table still behaves like normal by typing FavouriteCocktail
but I got this error thatFavouriteCocktail(Table doesn’t exist)` I have dropped the database, created and did rails db:shema:load but it still does not work. I have also made neccessary name changes to the model and controlers but no success. I need help on how to solve this problem.