How to create the proper migration with boolean value in your ruby/rails app
In your migration file, instead of:
t.boolean :my_attrdo that:
t.boolean :my_attr, default: false, null: falseWritten by Luciano Sousa
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
 #Tags 
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#

 
 
 
