aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorMelody <meltheadorable@gmail.com>2015-02-03 22:54:36 -0500
committerMelody <meltheadorable@gmail.com>2015-02-03 22:54:36 -0500
commit17c5379827819a25a0501c4aff90e7d59ac080bd (patch)
tree393a2af1819c3da1a6ee9a6095e787501fa7059f /activerecord
parentd6e6e9bd61c00416afdc1491a822a55bee62381f (diff)
downloadrails-17c5379827819a25a0501c4aff90e7d59ac080bd.tar.gz
rails-17c5379827819a25a0501c4aff90e7d59ac080bd.tar.bz2
rails-17c5379827819a25a0501c4aff90e7d59ac080bd.zip
Add default options to 'bit' and 'bit_varying' methods
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/connection_adapters/postgresql/schema_definitions.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/postgresql/schema_definitions.rb b/activerecord/lib/active_record/connection_adapters/postgresql/schema_definitions.rb
index 04b7147388..b9078d4c86 100644
--- a/activerecord/lib/active_record/connection_adapters/postgresql/schema_definitions.rb
+++ b/activerecord/lib/active_record/connection_adapters/postgresql/schema_definitions.rb
@@ -76,11 +76,11 @@ module ActiveRecord
column(name, :point, options)
end
- def bit(name, options)
+ def bit(name, options = {})
column(name, :bit, options)
end
- def bit_varying(name, options)
+ def bit_varying(name, options = {})
column(name, :bit_varying, options)
end