Skip to content

Commit

Permalink
We must make sure that when it is time to pick up and move in the win…
Browse files Browse the repository at this point in the history
…ter we have not gotten ahead of ourselves and already moved for next summer.
  • Loading branch information
busbey authored and judofyr committed Mar 30, 2010
1 parent 82911fa commit 6c8de5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/camping/ar.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def self.create_schema(opts = {})
si = SchemaInfo.find(:first) || SchemaInfo.new(:version => opts[:assume])
if si.version < opts[:version]
@migrations.each do |k|
(@migrations.sort do |a,b| a.version <=> b.version end).each do |k|
k.migrate(:up) if si.version < k.version and k.version <= opts[:version]
k.migrate(:down) if si.version > k.version and k.version > opts[:version]
end
Expand Down

0 comments on commit 6c8de5c

Please sign in to comment.