diff options
author | Thomas Klemm <mail@tklemm.eu> | 2012-08-04 11:09:38 +0300 |
---|---|---|
committer | Thomas Klemm <mail@tklemm.eu> | 2012-08-04 11:09:38 +0300 |
commit | 4c1db8a93c2f2f21030cac0deae7f287355133a8 (patch) | |
tree | 663e20e459f4fbd25e347730096090c6f50df4e6 /activerecord/lib/active_record/migration.rb | |
parent | 5fe923cc341b5487fff2b7f2862829367ebd5102 (diff) | |
download | rails-4c1db8a93c2f2f21030cac0deae7f287355133a8.tar.gz rails-4c1db8a93c2f2f21030cac0deae7f287355133a8.tar.bz2 rails-4c1db8a93c2f2f21030cac0deae7f287355133a8.zip |
Update Migration Docs: Defaults for Boolean Fields
A Boolean field will accept true or false as defaults instead of 0 / 1.
Diffstat (limited to 'activerecord/lib/active_record/migration.rb')
-rw-r--r-- | activerecord/lib/active_record/migration.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/migration.rb b/activerecord/lib/active_record/migration.rb index 7cbe61f14d..703265c334 100644 --- a/activerecord/lib/active_record/migration.rb +++ b/activerecord/lib/active_record/migration.rb @@ -50,7 +50,7 @@ module ActiveRecord # # 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 |