noosfero | multitenancy: don't try to write to db/schema.rb

Antonio Terceiro gitlab at gitlab.com
Sat Feb 7 13:46:08 BRST 2015


Antonio Terceiro pushed to refs/heads/master at <a href="https://gitlab.com/noosfero/noosfero">Noosfero / noosfero</a>

Commits:
<a href="https://gitlab.com/noosfero/noosfero/commit/320bcfbba53d601facaa5cc2a2c27e9350b8798f">320bcfbb</a> by Antonio Terceiro
multitenancy: don't try to write to db/schema.rb

We don't want to change db/schema.rb because there are  plugin tables in
the database.

- - - - -


Changes:

=====================================
lib/tasks/multitenancy.rake
=====================================
--- a/lib/tasks/multitenancy.rake
+++ b/lib/tasks/multitenancy.rake
@@ -22,7 +22,7 @@ namespace :db do
     envs = ActiveRecord::Base.configurations.keys.select{ |k| k.match(/_#{Rails.env}$/) }
     envs.each do |e|
       puts "*** Migrating #{e}" if Rake.application.options.trace
-      system "rake db:migrate RAILS_ENV=#{e}"
+      system "rake db:migrate RAILS_ENV=#{e} SCHEMA=/dev/null"
     end
   end
   task :migrate => :migrate_other_environments

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20150207/c1bc10b6/attachment.html>


More information about the Noosfero-dev mailing list