We need to constantly update our database schema in production for rails 3.1.3. The first db schema was created with the following rails command:
$rake RAILS_ENV=production db:schema:load
Question: can we use the above command to update the db schema during production, while preserving all current data?
Many thanks.
I have never used rake db:schema:loadin production, but in accordance with this answer to another question here on SO, I don’t think you want to do that .
rake db:schema:load
, RAILS_ENV=production rake db:migrate .
RAILS_ENV=production rake db:migrate
Source: https://habr.com/ru/post/1525993/More articles:Counting the number of different prime numbers in factoring N - pythonHow to determine client country, locale in laravel 4 - phpAuto-scale up Enable, indicate problem - iosDjango: loaddata not working - pythonПочему первое развертывание с помощью Capistrano Run db: migrate? - ruby-on-railsHow can I distinguish color for each letter in a text box? - javascriptggplot2 - line up geom_point with split mailboxes - rПортирование кода расшифровки AES Java на Node.js - javaThe appoop2.2.0 append file is set to AlreadyBeingCreatedException - javaSoapy web service with portable class library - c #All Articles