ruby on rails - I've overwritten a table in my database (locally), How can I stop this from deploying -


i have table named impressions , (in dev branch) installed impressionist gem has overwritten table.

my master branch showing overwritten version , not original. fortunately, haven't deployed, still have data.

other exporting data live, creating new table , importing again.. there way can fix this?

it's worth saying schema on master branch kept old table columns, when renamed table (in effort stop being overwritten when merge dev branch) renamed table had columns impressionist gem. why this? have schema checked in version control , feel uncomfortable knowing things i'm editing on dev branches having , effect on master branch.

rollback database 1 step using below command:

  rake db:rollback step=1 

& exceute below command

rails d impressionist 

Comments

Popular posts from this blog

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -