ruby on rails - Creating (Dropping) Multiple Tables in One Migration -
ruby on rails - Creating (Dropping) Multiple Tables in One Migration -
is possible create (self.up) multiple tables in 1 rails 3 migration. if possible, conventional wisdom on using such approach. tells me improve form maintain 1 table per migration, i'd thought check more seasoned ruby on railers.
thanks.
the overall thought of migrations have database schema in version control. think more of import have 1 migration per "feature". example, if have application pleople(name, prename) , want add together phone number, add together alter migration. if, phone number want implement remote lookup, might need caching table. still add together same migration.
there 1 advantage of splitting table creations: can manually rewind migrations per table.
ruby-on-rails rails-migrations
Comments
Post a Comment