diff options
author | Michael Koziarski <michael@koziarski.com> | 2010-04-09 11:29:53 +1200 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2010-04-09 11:30:40 +1200 |
commit | 1e3dce08e11bd11e7d774512ea599166c4c45378 (patch) | |
tree | c8270c4ce23dbaf3701501fd5f50624761033ecd /activerecord/test | |
parent | 82514c2897a43ab58239af1fb24f8f0de2a0d989 (diff) | |
download | rails-1e3dce08e11bd11e7d774512ea599166c4c45378.tar.gz rails-1e3dce08e11bd11e7d774512ea599166c4c45378.tar.bz2 rails-1e3dce08e11bd11e7d774512ea599166c4c45378.zip |
Revert "When creating database with rake, create schemas in schema_search_path if it doesn't exist."
This reverts commit 6c2a0675f11a9b5b8e88ed7dbccd65cb51be8029.
Reverting because it breaks the ability to run tests using a non-superuser.
Conflicts:
activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
activerecord/lib/active_record/railties/databases.rake
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/active_schema_test_postgresql.rb | 7 | ||||
-rw-r--r-- | activerecord/test/cases/adapter_test.rb | 6 |
2 files changed, 0 insertions, 13 deletions
diff --git a/activerecord/test/cases/active_schema_test_postgresql.rb b/activerecord/test/cases/active_schema_test_postgresql.rb index 67c662d694..af80f724f2 100644 --- a/activerecord/test/cases/active_schema_test_postgresql.rb +++ b/activerecord/test/cases/active_schema_test_postgresql.rb @@ -17,13 +17,6 @@ class PostgresqlActiveSchemaTest < Test::Unit::TestCase assert_equal %(CREATE DATABASE "aimonetti" ENCODING = 'latin1'), create_database(:aimonetti, :encoding => :latin1) end - def test_create_schema - assert_equal %(CREATE SCHEMA "rizwan" AUTHORIZATION "postgres"), create_schema(:rizwan, :postgres) - end - - def test_drop_schema - assert_equal %(DROP SCHEMA "rizwan"), drop_schema(:rizwan) - end private def method_missing(method_symbol, *arguments) ActiveRecord::Base.connection.send(method_symbol, *arguments) diff --git a/activerecord/test/cases/adapter_test.rb b/activerecord/test/cases/adapter_test.rb index 9f78ae008c..9b28766405 100644 --- a/activerecord/test/cases/adapter_test.rb +++ b/activerecord/test/cases/adapter_test.rb @@ -81,12 +81,6 @@ class AdapterTest < ActiveRecord::TestCase def test_encoding assert_not_nil @connection.encoding end - - def test_all_schemas - @connection.create_schema(:test_schema, :postgres) - assert @connection.all_schemas.include?('test_schema') - @connection.drop_schema(:test_schema) - end end def test_table_alias |