diff options
author | Sean Griffin <sean@seantheprogrammer.com> | 2015-12-17 09:35:56 -0700 |
---|---|---|
committer | Sean Griffin <sean@seantheprogrammer.com> | 2015-12-17 09:36:59 -0700 |
commit | 7f86ed8b36b534cf94fe2ff47ae71956b57893ac (patch) | |
tree | 789194cdc5c78c04cff03c295e4205eb3bc36810 /activerecord/test | |
parent | 0957c8ad6722c1a82c16f70b23fe1f7cb2607ff5 (diff) | |
download | rails-7f86ed8b36b534cf94fe2ff47ae71956b57893ac.tar.gz rails-7f86ed8b36b534cf94fe2ff47ae71956b57893ac.tar.bz2 rails-7f86ed8b36b534cf94fe2ff47ae71956b57893ac.zip |
Call the new point behavior `:point`, not `:rails_5_1_point`
Since the attributes API is new in Rails 5, we don't actually need to keep
the behavior of `attribute :point`, as it's not a breaking change.
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/adapters/postgresql/geometric_test.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/activerecord/test/cases/adapters/postgresql/geometric_test.rb b/activerecord/test/cases/adapters/postgresql/geometric_test.rb index 3b97cb4ad4..9e250c2b7c 100644 --- a/activerecord/test/cases/adapters/postgresql/geometric_test.rb +++ b/activerecord/test/cases/adapters/postgresql/geometric_test.rb @@ -7,10 +7,10 @@ class PostgresqlPointTest < ActiveRecord::PostgreSQLTestCase include SchemaDumpingHelper class PostgresqlPoint < ActiveRecord::Base - attribute :x, :rails_5_1_point - attribute :y, :rails_5_1_point - attribute :z, :rails_5_1_point - attribute :array_of_points, :rails_5_1_point, array: true + attribute :x, :point + attribute :y, :point + attribute :z, :point + attribute :array_of_points, :point, array: true attribute :legacy_x, :legacy_point attribute :legacy_y, :legacy_point attribute :legacy_z, :legacy_point |