Permalink
Browse files

Merge pull request #9594 from yahonda/3-2-stable_prefix_suffix

Use shorter prefix and suffix to support Oracle adapter
  • Loading branch information...
2 parents 51ae6f4 + 5d57b82 commit bb0007f70420445f140004587aa1228895ab6653 @rafaelfranca rafaelfranca committed Mar 7, 2013
Showing with 5 additions and 4 deletions.
  1. +5 −4 activerecord/test/cases/ar_schema_test.rb
@@ -11,8 +11,8 @@ def setup
def teardown
@connection.drop_table :fruits rescue nil
- @connection.drop_table :"_pre_fruits_suf_" rescue nil
- @connection.drop_table :"_pre_schema_migrations_suf_" rescue nil
+ @connection.drop_table :"_p_fruits_s_" rescue nil
+ @connection.drop_table :"_p_schema_migrations_s_" rescue nil
end
def test_schema_define
@@ -24,8 +24,9 @@ def test_schema_define
end
def test_schema_define_with_table_prefix_and_suffix
- ActiveRecord::Base.table_name_prefix = '_pre_'
- ActiveRecord::Base.table_name_suffix = '_suf_'
+ # Use shorter prefix and suffix as in Oracle database identifier cannot be larger than 30 characters
+ ActiveRecord::Base.table_name_prefix = '_p_'
+ ActiveRecord::Base.table_name_suffix = '_s_'
perform_schema_define!

0 comments on commit bb0007f

Please sign in to comment.