Running "rails g wysihat" in rails 3 after installation gives me a NotImplementedError exception in the next_migration_number method. This method is defined under Rails::Generators::Migration::ClassMethods in the rails source, so changing it to be a class method in wysihat fixed it for me:
-def next_migration_number(dirname) #:nodoc:
+def self.next_migration_number(dirname) #:nodoc:
Running "rails g wysihat" in rails 3 after installation gives me a NotImplementedError exception in the next_migration_number method. This method is defined under Rails::Generators::Migration::ClassMethods in the rails source, so changing it to be a class method in wysihat fixed it for me: