I am trying to modify my database in rails for that I want to write a script that would modify my model accordingly when executed. I have no idea how to create a script and run it using rails console. Please somebody guide me.
Eg -: Suppose i want to write a script that has Model.all written in it and when I execute it using console Model.all should run