Thank you very much. What we want to realize is the title.
The situation is
①rails g migration AddHogeToFuga hoge: string
②rails g migration Remove HogeFromFuga hoge: string
③rails db: migrate
Since it became necessary, if you try to add it again
Could not be added.
Is it possible to remove the added column and give it the same name?
Answer # 1
Can I add the same name even if I remove the added column?
You can't just create amigrationwith the same name. If you create a migration with a different name, it will run without problems.
- ruby on rails - about column settings you want to add with devise_parameter_sanitizer of devise using multiple models
- ruby on rails - i want to associate a column based on the id of the array fetched by group method
- ruby on rails - i want to apply the first column of active hash to include_blank
- ruby - column address in rails form_for select method is not fetched in params
- ruby on rails 5 - determining column type boolean
- ruby - i added a rails column, but i can't associate it with the user table
- ruby - rails bootstrap 3 column layout
- ruby - rails i want to group the same column, link the column name, and click to display all records in that column, but i get a
- ruby on rails - i want to get data from a specific column and reflect it in the view
- ruby on rails column totals
- ruby - i want rails controller @user = userwhere (logged user's date of birth + -3 years)
- ruby - [rails] actioncontroller :: parametermissing is displayed when using fields_for and data is not saved
- ruby on rails - user cannot edit after validating password
- ruby on rails - i want to api communication between containers created with docker-compose
- ruby on rails data is not saved in db? ??
- ruby - [rails] posts added to favorites are not saved
- ruby on rails - i can't get aws environment variables in rails
- ruby on rails - i want to make a flea market app with rails and stripe, but i can't have a system to send money to the seller
- [ruby on rails] i can no longer start the app in the local environment
- ruby on rails - [rails] form_with submit button does not respond
- ruby - images cannot be displayed with the bulletin board posting function in rails
- ruby - i want to save to tave from a site made with rails
- ruby - payjp payment information screen is not displayed properly [rails]
- ruby - when the search result of the model is displayed by the function to see more in kaminari, the whole is displayed instead
- ruby bundler doesn't work no error message is displayed
- ruby - "the page you were looking for doesn't exist" when deploying rails 6
- ruby - [rails] i can't install the add favorite button
- bootstrap display in ruby on rails is broken
- ruby - when deleting a post, i want to delete the comment associated with the model together
- ruby - i want to cancel nameerror in prototypes # index