I discovered application templates today, and I've been banging my head against the wall for an hour now about generating a one-line migration.
g = Rails::Generators::Base.new g.extend Rails::Generators::Migration g.instance_variable_set(:@source_paths, [File.expand_path(File.dirname( __FILE__))]) g.migration_template "migrations/enable_uuid.rb", "db/migrate/enable_uuid.rb" Seems to me like there should be an easy API endpoint about generating migrations. (I would've used the generator, but my migration doesn't fit the generator invocation, it's about enabling a DB extension) -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/5863ff19-8a02-4608-9aee-e4083185fd1b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

