diff options
| author | nemsia <nemsia@nemsia.org> | 2017-06-15 11:57:44 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-06-15 11:57:44 +0200 |
| commit | daa700336a3e8f3c363946115f0e81299db961e2 (patch) | |
| tree | 7bffa9c0eb0cc8aa940eaeb73c6c80c82c12ecc1 /scripts/upgrade | |
| parent | e438a0ab3eda6a63150ceaa983e1614836c07b70 (diff) | |
| parent | d7b8bd7b23e3603c099bfff78be4a58926108e67 (diff) | |
| download | mastodon_ynh-daa700336a3e8f3c363946115f0e81299db961e2.tar.gz mastodon_ynh-daa700336a3e8f3c363946115f0e81299db961e2.tar.bz2 mastodon_ynh-daa700336a3e8f3c363946115f0e81299db961e2.zip | |
Merge pull request #45 from MCMic/master
Added needed line for 1.4.2 migration
Diffstat (limited to 'scripts/upgrade')
| -rw-r--r-- | scripts/upgrade | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/upgrade b/scripts/upgrade index a741c4d..4308838 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -72,6 +72,8 @@ sudo su - $app <<COMMANDS pushd ~/live bin/bundle install yarn install --pure-lockfile +# For 1.4.1 -> 1.4.2 migration prepare_for_foreign_keys is needed +RAILS_ENV=production bundle exec rails mastodon:maintenance:prepare_for_foreign_keys RAILS_ENV=production bundle exec rails assets:clean RAILS_ENV=production bundle exec rails assets:precompile RAILS_ENV=production bundle exec rails db:migrate |
