migrations.feature 1.2 KB

1234567891011121314151617181920212223242526
  1. Feature: Migrations With Schema
  2. Scenario: Creating a Table
  3. When I generate a migration with name 'create_orders_table' and fields 'name:string'
  4. Then I should see "Created:"
  5. And the generated migration should match my 'CreateOrdersTable' stub
  6. Scenario: Creating a Table With Complex Fields
  7. When I generate a migration with name 'create_orders_table' and fields 'title:string(50):unique, body:text:unique:nullable'
  8. Then I should see "Created:"
  9. And the generated migration should match my 'CreateComplexOrdersTable' stub
  10. Scenario: Dropping a Table
  11. When I generate a migration with name 'drop_orders_table' and fields 'title:string'
  12. Then I should see "Created:"
  13. And the generated migration should match my 'DropOrdersTable' stub
  14. Scenario: Adding to a Table
  15. When I generate a migration with name 'add_title_to_orders_table' and fields 'title:string'
  16. Then I should see "Created:"
  17. And the generated migration should match my 'AddTitleToOrdersTable' stub
  18. Scenario: Removing from a Table
  19. When I generate a migration with name 'remove_title_from_orders_table' and fields 'title:string'
  20. Then I should see "Created:"
  21. And the generated migration should match my 'RemoveTitleFromOrdersTable' stub