Commit 320bcfbba53d601facaa5cc2a2c27e9350b8798f

Authored by Antonio Terceiro
1 parent 6520954e

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.
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
lib/tasks/multitenancy.rake
... ... @@ -22,7 +22,7 @@ namespace :db do
22 22 envs = ActiveRecord::Base.configurations.keys.select{ |k| k.match(/_#{Rails.env}$/) }
23 23 envs.each do |e|
24 24 puts "*** Migrating #{e}" if Rake.application.options.trace
25   - system "rake db:migrate RAILS_ENV=#{e}"
  25 + system "rake db:migrate RAILS_ENV=#{e} SCHEMA=/dev/null"
26 26 end
27 27 end
28 28 task :migrate => :migrate_other_environments
... ...