I have a table set up in my database. I want to add another column, can I just go into the PGADMIN interface or should I do it with the migrate file and then rails db:migrate again?
Answers to your questions
I have a table set up in my database. I want to add another column, can I just go into the PGADMIN interface or should I do it with the migrate file and then rails db:migrate again?
Rails is aware of the schema of your app and does magic in the models accordingly. You could get tricky with the code if you want to do it in pgadmin, but unless you have a really good reason, I’d recommend creating a migration.
You don’t have to change your migration files (honestly wouldn’t recommend it if your code is already in production), you can just add a new one.