I recently renamed a schema named favourites using rails g migration rename_favourites_to_favourite_cocktails
In the migration file generated I did this
`def self.up
rename_table :favourites, :favouriteCocktails
end
def self.down
rename_table :favouriteCocktails, :favourites
end then I ran
rails db:migrate. At the rails console I decide to checkout if the table still behaves like normal by typing
FavouriteCocktailbut I got this error that
FavouriteCocktail(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.