diff options
author | Yasuo Honda <yasuo.honda@gmail.com> | 2016-01-12 01:51:54 +0000 |
---|---|---|
committer | Yasuo Honda <yasuo.honda@gmail.com> | 2016-02-01 15:41:37 +0000 |
commit | a374af8b5788506acc28b755c0cde62ee89fa9d3 (patch) | |
tree | f84e37ad0045f8674e9b50eb1a56b0ae5eb0ece2 /railties/test/application/rake | |
parent | 8b2c618cefef1ccd83d270cbacdd19abf4be9b2f (diff) | |
download | rails-a374af8b5788506acc28b755c0cde62ee89fa9d3.tar.gz rails-a374af8b5788506acc28b755c0cde62ee89fa9d3.tar.bz2 rails-a374af8b5788506acc28b755c0cde62ee89fa9d3.zip |
Shorten ActiveRecord::InternalMetadata.table_name to ar_internal_metadata
to support Oracle database which only supports 30 byte identifier length
Diffstat (limited to 'railties/test/application/rake')
-rw-r--r-- | railties/test/application/rake/dbs_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/test/application/rake/dbs_test.rb b/railties/test/application/rake/dbs_test.rb index c000a70382..a229609e84 100644 --- a/railties/test/application/rake/dbs_test.rb +++ b/railties/test/application/rake/dbs_test.rb @@ -222,14 +222,14 @@ module ApplicationTests assert_equal '["posts"]', list_tables[] `bin/rails db:schema:load` - assert_equal '["posts", "comments", "schema_migrations", "active_record_internal_metadatas"]', list_tables[] + assert_equal '["posts", "comments", "schema_migrations", "ar_internal_metadata"]', list_tables[] app_file 'db/structure.sql', <<-SQL CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)); SQL `bin/rails db:structure:load` - assert_equal '["posts", "comments", "schema_migrations", "active_record_internal_metadatas", "users"]', list_tables[] + assert_equal '["posts", "comments", "schema_migrations", "ar_internal_metadata", "users"]', list_tables[] end end |