Permalink
Browse files

Update Migration Docs: Defaults for Boolean Fields

A Boolean field will accept true or false as defaults instead of 0 / 1.
  • Loading branch information...
1 parent 5fe923c commit 4c1db8a93c2f2f21030cac0deae7f287355133a8 @thomasklemm thomasklemm committed Aug 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/migration.rb
View
2 activerecord/lib/active_record/migration.rb
@@ -50,7 +50,7 @@ def initialize
#
# class AddSsl < ActiveRecord::Migration
# def up
- # add_column :accounts, :ssl_enabled, :boolean, :default => 1
+ # add_column :accounts, :ssl_enabled, :boolean, :default => true
# end
#
# def down

0 comments on commit 4c1db8a

Please sign in to comment.