0

I have to add one column to almost 10 tables. What do you think is the best way to do that?

  • Make a one migration with weird name and use a loop to change column in each model

  • Make 10 migrations with similar content but having nice names like: add_extra_field_to_user

Piotr Brudny
  • 654
  • 4
  • 16

1 Answers1

1

I would go for 10. Additional advantage is that you can run them, and rollback them seperately. Also I would always give readability priority, especially when otherwisee you get weird names ;)

markijbema
  • 3,985
  • 20
  • 32