I was wondering if anyone knows how to update files (add / remove / update attribute) created using a ruby-based escid generator.
For instance:
student name scaffold: string lastname: string
therefore, it will create associated files (controller, view, etc.) with name and name as string attributes. When you db: transfer the project, it will create a table in the database. However, let's say I want to update, update it using the add attribute (like studenId: integer) or if it removes or updates the attribute, how do you do it?
I'm tired of just updating the generated files, but when I do this db: migrate, it still sets up the schema that is generated for what is in the table. Is there a built-in script in rails that will update the table?
Any recommendations evaluated? Thanks, D
source share