Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use shorter prefix and suffix as in Oracle database identifier

cannot be larger than 30 characters
  • Loading branch information...
commit 5d57b821d04eab3fd9b4bdf78254dc428d203be7 1 parent 51ae6f4
@yahonda yahonda authored
Showing with 5 additions and 4 deletions.
  1. +5 −4 activerecord/test/cases/ar_schema_test.rb
View
9 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!
Please sign in to comment.
Something went wrong with that request. Please try again.