diff options
author | Mehmet Emin İNAÇ <mehmetemininac@gmail.com> | 2015-06-08 10:57:03 +0300 |
---|---|---|
committer | Mehmet Emin İNAÇ <mehmetemininac@gmail.com> | 2015-06-08 10:57:03 +0300 |
commit | 7f2037a990fd81e07f612169f72e8d59fc2a4e52 (patch) | |
tree | da47ca90d8d548b1643d63a13f01e4d08642a0dd /activerecord/lib/active_record | |
parent | 1a971d0f1013aca74024abf5c04a3700242bf541 (diff) | |
download | rails-7f2037a990fd81e07f612169f72e8d59fc2a4e52.tar.gz rails-7f2037a990fd81e07f612169f72e8d59fc2a4e52.tar.bz2 rails-7f2037a990fd81e07f612169f72e8d59fc2a4e52.zip |
Add missing data types for ActiveRecord migrations
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/postgresql/schema_definitions.rb | 24 |
1 files changed, 24 insertions, 0 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 022dbdfa27..6399bddbee 100644 --- a/activerecord/lib/active_record/connection_adapters/postgresql/schema_definitions.rb +++ b/activerecord/lib/active_record/connection_adapters/postgresql/schema_definitions.rb @@ -103,6 +103,30 @@ module ActiveRecord args.each { |name| column(name, :point, options) } end + def line(*args, **options) + args.each { |name| column(name, :line, options) } + end + + def lseg(*args, **options) + args.each { |name| column(name, :lseg, options) } + end + + def box(*args, **options) + args.each { |name| column(name, :box, options) } + end + + def path(*args, **options) + args.each { |name| column(name, :path, options) } + end + + def polygon(*args, **options) + args.each { |name| column(name, :polygon, options) } + end + + def circle(*args, **options) + args.each { |name| column(name, :circle, options) } + end + def serial(*args, **options) args.each { |name| column(name, :serial, options) } end |