Skip to content

Commit

Permalink
Fixing handling of minor version numbers when looking for the biggest…
Browse files Browse the repository at this point in the history
… migration we've seen
  • Loading branch information
busbey authored and judofyr committed Mar 30, 2010
1 parent 36b1287 commit 82911fa
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 @@ -13,7 +13,7 @@ class SchemaInfo < Base
end
def self.V(n)
@final = [n, @final.to_i].max
@final = [n, @final.to_f].max
m = (@migrations ||= [])
Class.new(ActiveRecord::Migration) do
meta_def(:version) { n }
Expand Down

0 comments on commit 82911fa

Please sign in to comment.