aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorYasuo Honda <yasuo.honda@gmail.com>2012-04-13 07:19:38 -0400
committerYasuo Honda <yasuo.honda@gmail.com>2012-04-13 07:19:38 -0400
commit7d655857851dd055f047fd9491fb718d3456ccb8 (patch)
tree4561a36755d1efc7f47b48a3ef2180cd384624ac /activerecord
parent4e3e5138b537e999b5bdf6fbb1243890123ada5d (diff)
downloadrails-7d655857851dd055f047fd9491fb718d3456ccb8.tar.gz
rails-7d655857851dd055f047fd9491fb718d3456ccb8.tar.bz2
rails-7d655857851dd055f047fd9491fb718d3456ccb8.zip
Fix ORA-00972 error at test_rename_table_with_prefix_and_suffix
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/test/cases/migration_test.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/activerecord/test/cases/migration_test.rb b/activerecord/test/cases/migration_test.rb
index 92dc150104..e2936963d9 100644
--- a/activerecord/test/cases/migration_test.rb
+++ b/activerecord/test/cases/migration_test.rb
@@ -36,7 +36,7 @@ class MigrationTest < ActiveRecord::TestCase
ActiveRecord::Base.connection.initialize_schema_migrations_table
ActiveRecord::Base.connection.execute "DELETE FROM #{ActiveRecord::Migrator.schema_migrations_table_name}"
- %w(things awesome_things prefix_things_suffix prefix_awesome_things_suffix).each do |table|
+ %w(things awesome_things prefix_things_suffix p_awesome_things_s ).each do |table|
Thing.connection.drop_table(table) rescue nil
end
Thing.reset_column_information
@@ -278,8 +278,8 @@ class MigrationTest < ActiveRecord::TestCase
def test_rename_table_with_prefix_and_suffix
assert !Thing.table_exists?
- ActiveRecord::Base.table_name_prefix = 'prefix_'
- ActiveRecord::Base.table_name_suffix = '_suffix'
+ ActiveRecord::Base.table_name_prefix = 'p_'
+ ActiveRecord::Base.table_name_suffix = '_s'
Thing.reset_table_name
Thing.reset_sequence_name
WeNeedThings.up
@@ -288,7 +288,7 @@ class MigrationTest < ActiveRecord::TestCase
assert_equal "hello world", Thing.find(:first).content
RenameThings.up
- Thing.table_name = "prefix_awesome_things_suffix"
+ Thing.table_name = "p_awesome_things_s"
assert_equal "hello world", Thing.find(:first).content
ensure