any easy way to detect it? I want to skip some codes in envirmonment.rb when doing migration rake.
相关问题
- Question marks after images and js/css files in ra
- Using :remote => true with hover event
- Eager-loading association count with Arel (Rails 3
- Is there a way to remove IDV Tags from an AIFF fil
- Rails how to handle error and exceptions in model
相关文章
- Right way to deploy Rails + Puma + Postgres app to
- AWS S3 in rails - how to set the s3_signature_vers
- how to call a active record named scope with a str
- How to add a JSON column in MySQL with Rails 5 Mig
- “No explicit conversion of Symbol into String” for
- form_for wrong number of arguments in rails 4
- Rspec controller error expecting <“index”> but
- Factory_girl has_one relation with validates_prese
i think if u want to skip, just comment (#) on code.
or many choose on migration rake.
for example : rake db:migrate:up VERSION=2000123232 its mean , only 2000123232_create_article do migration.
or rake db:migrate VERSION=2000123232 mean start from after 2000123232
or rake db:migrate:down VERSION=2000123232
just rake help u can see what u need to rake.
Do you mean that?
I had this problem in a legacy application I was maintaining. There were some observers that were interfering with migrations past a certain point, so I disabled them during migration by checking the application name and arguments