Boolean fields in migrations

Updated . Posted . Visible to the public.

If you want to update some records with boolean fields in a migration, always remember to set your values with field=#{quoted_true} and field=#{quoted_false}. The Rails methods quoted_false and quoted_true return the correct boolean representations for your database.

Last edit
License
Source code in this card is licensed under the MIT License.
Posted to makandra dev (2012-09-06 18:23)