ruby - Rails create task or model to update the schema -


i have list of tables(postgres database), , want create rake task or method not know 1 better change schema existing table.

i have done lot of googling , found multi schema used multi tenant applications, have 2 schema alone , use in db this

i have list of tables user profile projects , more, update schema while rake db:drop or rake db:migrate

example:

user , profile stays in public schema , task should create new schema "dashboard" , move project table dashboard.

how create task or method update schema while drop , migrate?


Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -