Open quyen91 opened 7 years ago
http://jacopretorius.net/2014/07/patterns-for-data-migrations-in-rails.html
Some time, we must write raw query instead of Model object that we don't depend on Model. One day, maybe we want to change name of Model and will cause error for migration
Alway set null: false when you set default: value in migration
null: false
default: value
http://jacopretorius.net/2014/07/patterns-for-data-migrations-in-rails.html
Some time, we must write raw query instead of Model object that we don't depend on Model. One day, maybe we want to change name of Model and will cause error for migration