Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Note for creating a migration in rails #1

Open
quyen91 opened this issue Feb 24, 2017 · 1 comment
Open

Note for creating a migration in rails #1

quyen91 opened this issue Feb 24, 2017 · 1 comment

Comments

@quyen91
Copy link
Owner

quyen91 commented Feb 24, 2017

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

@quyen91
Copy link
Owner Author

quyen91 commented Aug 21, 2017

Alway set null: false when you set default: value in migration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant