diff options
author | Jon Leighton <j@jonathanleighton.com> | 2011-11-29 12:28:04 +0000 |
---|---|---|
committer | Jon Leighton <j@jonathanleighton.com> | 2011-11-29 20:13:36 +0000 |
commit | 0b72a04d0c93b666c23500aefbe4a6a76593cd36 (patch) | |
tree | ade686831d089326d5a45a1cefe084950ed9bd8d /activerecord/test/cases/adapters/postgresql | |
parent | f73f53455a01a93bd90cb8c0cee1a7c54afdb301 (diff) | |
download | rails-0b72a04d0c93b666c23500aefbe4a6a76593cd36.tar.gz rails-0b72a04d0c93b666c23500aefbe4a6a76593cd36.tar.bz2 rails-0b72a04d0c93b666c23500aefbe4a6a76593cd36.zip |
Deprecate set_table_name in favour of self.table_name= or defining your own method.
Diffstat (limited to 'activerecord/test/cases/adapters/postgresql')
-rw-r--r-- | activerecord/test/cases/adapters/postgresql/schema_test.rb | 10 | ||||
-rw-r--r-- | activerecord/test/cases/adapters/postgresql/view_test.rb | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/activerecord/test/cases/adapters/postgresql/schema_test.rb b/activerecord/test/cases/adapters/postgresql/schema_test.rb index 467e5d7b86..d08f0b324d 100644 --- a/activerecord/test/cases/adapters/postgresql/schema_test.rb +++ b/activerecord/test/cases/adapters/postgresql/schema_test.rb @@ -26,23 +26,23 @@ class SchemaTest < ActiveRecord::TestCase PK_TABLE_NAME = 'table_with_pk' class Thing1 < ActiveRecord::Base - set_table_name "test_schema.things" + self.table_name = "test_schema.things" end class Thing2 < ActiveRecord::Base - set_table_name "test_schema2.things" + self.table_name = "test_schema2.things" end class Thing3 < ActiveRecord::Base - set_table_name 'test_schema."things.table"' + self.table_name = 'test_schema."things.table"' end class Thing4 < ActiveRecord::Base - set_table_name 'test_schema."Things"' + self.table_name = 'test_schema."Things"' end class Thing5 < ActiveRecord::Base - set_table_name 'things' + self.table_name = 'things' end def setup diff --git a/activerecord/test/cases/adapters/postgresql/view_test.rb b/activerecord/test/cases/adapters/postgresql/view_test.rb index 303ba9245a..66e07b71a0 100644 --- a/activerecord/test/cases/adapters/postgresql/view_test.rb +++ b/activerecord/test/cases/adapters/postgresql/view_test.rb @@ -14,7 +14,7 @@ class ViewTest < ActiveRecord::TestCase ] class ThingView < ActiveRecord::Base - set_table_name 'test_schema.view_things' + self.table_name = 'test_schema.view_things' end def setup |