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

NOT NULL fields and validations. #34

Open
brunoocasali opened this issue Dec 4, 2015 · 1 comment
Open

NOT NULL fields and validations. #34

brunoocasali opened this issue Dec 4, 2015 · 1 comment

Comments

@brunoocasali
Copy link
Contributor

Hello!

Following our guides, we don't need to use t.string :name, null: false for example in our migrations, but is good to database when rails fails (if it fails). What did you think about it? Is a good tip add this and refactor our code?

Thx!

@felipefontoura
Copy link
Contributor

@brunoocasali it's a good idea to add t.string :name, null: false to our migrations.

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

No branches or pull requests

2 participants