test/migration_generator.rdoctest in hobo_fields-2.1.2 vs test/migration_generator.rdoctest in hobo_fields-2.2.0
- old
+ new
@@ -164,11 +164,11 @@
body :text
end
end
>> up, down = Generators::Hobo::Migration::Migrator.run
>> up
- => "change_column :adverts, :title, :text, :limit => nil"
+ => "change_column :adverts, :title, :text"
>> down
=> "change_column :adverts, :title, :string"
### Add a default
@@ -182,10 +182,10 @@
end
>> up, down = migrate
>> up.split(',').slice(0,3).join(',')
=> 'change_column :adverts, :title, :string'
>> up.split(',').slice(3,2).sort.join(',')
- => ' :default => "Untitled", :limit => 255'
+ => " :default => \"Untitled\""
>> down
=> "change_column :adverts, :title, :string"
### Limits