M
M
MagoVinch2015-01-09 10:53:35
Ruby on Rails
MagoVinch, 2015-01-09 10:53:35

How to add a new table to a RoR application on Heroku where there is already data and not lose it?

There is a ruby ​​on rails app hosted on heroku with data already loaded. You need to add a new table without losing data.
How can I do that?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Krasnodemsky, 2015-01-09
@MagoVinch

By adding a table, you will not lose data.
Create a migration with your table, run it on heroku.
Restart the application.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question