doctest/multi_model_forms.rdoctest in hobo-1.0.3 vs doctest/multi_model_forms.rdoctest in hobo-1.1.0.pre0
- old
+ new
@@ -29,11 +29,10 @@
:username => mysql_user,
:password => mysql_password)
>> $:.unshift File.join(File.expand_path(File.dirname(__FILE__)), '../../hobofields/lib')
>> $:.unshift File.join(File.expand_path(File.dirname(__FILE__)), '../../hobosupport/lib')
>> $:.unshift File.join(File.expand_path(File.dirname(__FILE__)), '../../hobo/lib')
- >> gem 'will_paginate', '~> 2'
>> require 'will_paginate'
>> require 'will_paginate/finder'
>> require 'hobosupport'
>> require 'hobofields'
>> require 'hobo'
@@ -41,10 +40,9 @@
>> HoboFields.enable
>> ActiveRecord::Base.logger = ActiveSupport::BufferedLogger.new(STDOUT)
>>
def migrate(renames={})
up, down = HoboFields::MigrationGenerator.run(renames)
- puts up
ActiveRecord::Migration.class_eval(up)
ActiveRecord::Base.send(:subclasses).each { |model| model.reset_column_information }
[up, down]
end
{.hidden}