test/migration_generator.rdoctest in hobo_fields-2.0.1 vs test/migration_generator.rdoctest in hobo_fields-2.1.0.pre1

- old
+ new

@@ -443,11 +443,11 @@ The migration generator respects the `set_table_name` declaration, although as before, we need to explicitly tell the generator that we want a rename rather than a create and a drop. >> class Advert - set_table_name "ads" + self.table_name="ads" fields do title :string, :default => "Untitled" body :text end end @@ -457,11 +457,11 @@ >> down => "rename_table :ads, :adverts" Set the table name back to what it should be and confirm we're in sync: - >> class Advert; set_table_name "adverts"; end + >> class Advert; self.table_name="adverts"; end >> Generators::Hobo::Migration::Migrator.run => ["", ""] ### Rename a table @@ -624,10 +624,10 @@ class Advert fields do name :string, :default => "No Name" body :text end - set_primary_key "advert_id" + self.primary_key="advert_id" end >> up, down = Generators::Hobo::Migration::Migrator.run(:adverts => {:id => :advert_id}) >> up => "rename_column :adverts, :id, :advert_id