Archive for October 15th, 2008
Oct 15
I need an individual file to be migrated in Rails
Ruby on Rails| No Comments »Rails migrations are great, they allow continual evolution of database schema. Sometimes, especially when prototyping, I hate to run migrations down and up and load data, just to make small independent change in database table. In this situations I run only specific migration:
ruby script/runner ‘require “db/migrate/005_create_blogs”; \n
CreateBlogs.migrate(:down)’
ruby script/runner ‘require “db/migrate/005_create_blogs”;\n
CreateBlogs.migrate(:up)’
This is much typing (for […]
