#939 ✓wontfix
Brian Corbin

Migrator default_migration_name

Reported by Brian Corbin | March 27th, 2011 @ 06:56 AM | in Hobo 1.3 (Rails 3)

With any existing files in db/migrate, I get the following error when trying to generate a migration.
/hobo_fields/lib/generators/hobo/migration/migrator.rb:64: syntax error, unexpected tCONSTANT, expecting $end (SyntaxError)

The fix is to replace line 64 of migrator.rb:
--max = existing.grep(/([0-9]+).rb$/) { $1.to_i }.max

with this:
++max = existing.collect { |x| /([0-9]+).rb$/.match(x)[1].to_i }.max

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

People watching this ticket

Attachments

Pages