test/migration_generator.rdoctest in hobo_fields-1.4.0.pre8 vs test/migration_generator.rdoctest in hobo_fields-2.0.0.pre1
- old
+ new
@@ -155,12 +155,10 @@
>> migrate
### Change a type
- >> Advert.attr_type :title
- => String
>>
class Advert
fields do
title :text
body :text
@@ -555,9 +553,11 @@
The migration generator is designed to create complete migrations even if many changes to the models have taken place.
First let's confirm we're in a known state. One model, 'Advert', with a string 'title' and text 'body':
+ >> Advert.connection.schema_cache.clear!
+ >> Advert.reset_column_information
>> Advert.connection.tables
=> ["adverts"]
>> Advert.columns.*.name
=> ["id", "body", "title"]
>> Generators::Hobo::Migration::Migrator.run