I have been using the Uncategorized category with a different name for years. We called it Share
.
Now I want to replace it with a default category so we can put subcategories in it and unclutter the top-level category space a bit.
So I tried to change the Uncategorized category name (Misc
), and removed the permalink trying to send old links there, so I can create a new Share
category and move everything from the new Misc
to the new Share
, including other categories.
But When I try to create a new category Share
I receive An error occurred: Category Name has already been taken
.
So I guess there is somewhere a name block on that word, which I’d like to ‘free’ so I can use it as intended. Do you know where to act?
In the console:
Category.where(name:'Share')
gives the category with slug misc
.
But I’m a bit worried about altering the name in the database directly.
Category.where(user_id:-1)
gives Staff and Share. I could try and rename : Category.where(name:’Share’).update(name: ‘Misc’, name_lower:’misc’)
(or something like this). Is it safe? Are there other places where I should take care of renaming?