Commit 320bcfbba53d601facaa5cc2a2c27e9350b8798f
1 parent
6520954e
Exists in
master
and in
27 other branches
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,7 +22,7 @@ namespace :db do | ||
22 | envs = ActiveRecord::Base.configurations.keys.select{ |k| k.match(/_#{Rails.env}$/) } | 22 | envs = ActiveRecord::Base.configurations.keys.select{ |k| k.match(/_#{Rails.env}$/) } |
23 | envs.each do |e| | 23 | envs.each do |e| |
24 | puts "*** Migrating #{e}" if Rake.application.options.trace | 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 | end | 26 | end |
27 | end | 27 | end |
28 | task :migrate => :migrate_other_environments | 28 | task :migrate => :migrate_other_environments |