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
-
Domizio Demichelis March 27th, 2011 @ 04:04 PM
- State changed from new to investigating
- Milestone set to Hobo 1.3 (Rails 3)
- Assigned user set to Domizio Demichelis
- Milestone order changed from 197969 to 0
Ruby version? What do you mean with "any existing files"? Please, give me a db/migrate/ content dir that will trigger the error. Thank you.
-
Domizio Demichelis March 27th, 2011 @ 07:51 PM
- State changed from investigating to wontfix
If you use awesome_print just in the console, you should load it from the .irbrc (probably using something like Bundler.require ...).
Anyway, if you want a very nice enancement of irb and rails console you could try my IRT, (https://github.com/ddnexus/irt, a lot of screenshots here https://github.com/ddnexus/irt/raw/master/irt-tutorial.pdf) ;-)
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.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป