diff options
author | Sean Griffin <sean@seantheprogrammer.com> | 2016-02-07 15:31:29 -0700 |
---|---|---|
committer | Sean Griffin <sean@seantheprogrammer.com> | 2016-02-07 15:31:29 -0700 |
commit | 5ccf8a9853d4a190cd4929ac0f6d736884c1dc80 (patch) | |
tree | 892468c2ad959d9e9cdffa423387274880f361bd /activerecord/lib/active_record/connection_adapters | |
parent | 76c42383c7162a7c99110b0bb7af82c936841414 (diff) | |
parent | aa38f7d6159574e3cfb3f2e313fa2c5e16e2ee1a (diff) | |
download | rails-5ccf8a9853d4a190cd4929ac0f6d736884c1dc80.tar.gz rails-5ccf8a9853d4a190cd4929ac0f6d736884c1dc80.tar.bz2 rails-5ccf8a9853d4a190cd4929ac0f6d736884c1dc80.zip |
Merge pull request #23508 from meinac/add_numeric_type_into_migrations
Added numeric helper into `SchemaStatements` for MySQL and PostgreSQL
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb b/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb index 690e0ba957..cb10ca9929 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb @@ -182,6 +182,7 @@ module ActiveRecord end CODE end + alias_method :numeric, :decimal end # Represents the schema of an SQL table in an abstract way. This class @@ -436,6 +437,7 @@ module ActiveRecord # t.bigint # t.float # t.decimal + # t.numeric # t.datetime # t.timestamp # t.time |