diff options
author | Yasuo Honda <yasuo.honda@gmail.com> | 2019-03-11 12:33:02 +0000 |
---|---|---|
committer | Yasuo Honda <yasuo.honda@gmail.com> | 2019-03-11 12:33:02 +0000 |
commit | 503c64704e41c1d2b05f9aefba2715e6c9d5a58f (patch) | |
tree | 94b08ed30b6fe922b74963664baf55ece39dc6b5 /activerecord/test/cases | |
parent | a62683f3e4326b222b6ad95b8b2dfcc31026d227 (diff) | |
download | rails-503c64704e41c1d2b05f9aefba2715e6c9d5a58f.tar.gz rails-503c64704e41c1d2b05f9aefba2715e6c9d5a58f.tar.bz2 rails-503c64704e41c1d2b05f9aefba2715e6c9d5a58f.zip |
Remove `MigrationTest#test_create_table_with_custom_sequence_name`
This test is only executed for OracleAdapter.
https://github.com/rsim/oracle-enhanced/pull/1846 adds
an equivalent spec for Oracle enhanced adapter.
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r-- | activerecord/test/cases/migration_test.rb | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/activerecord/test/cases/migration_test.rb b/activerecord/test/cases/migration_test.rb index 0ecd93412e..788c8c36b8 100644 --- a/activerecord/test/cases/migration_test.rb +++ b/activerecord/test/cases/migration_test.rb @@ -567,39 +567,6 @@ class MigrationTest < ActiveRecord::TestCase end end - if current_adapter? :OracleAdapter - def test_create_table_with_custom_sequence_name - # table name is 29 chars, the standard sequence name will - # be 33 chars and should be shortened - assert_nothing_raised do - Person.connection.create_table :table_with_name_thats_just_ok do |t| - t.column :foo, :string, null: false - end - ensure - Person.connection.drop_table :table_with_name_thats_just_ok rescue nil - end - - # should be all good w/ a custom sequence name - assert_nothing_raised do - Person.connection.create_table :table_with_name_thats_just_ok, - sequence_name: "suitably_short_seq" do |t| - t.column :foo, :string, null: false - end - - Person.connection.execute("select suitably_short_seq.nextval from dual") - - ensure - Person.connection.drop_table :table_with_name_thats_just_ok, - sequence_name: "suitably_short_seq" rescue nil - end - - # confirm the custom sequence got dropped - assert_raise(ActiveRecord::StatementInvalid) do - Person.connection.execute("select suitably_short_seq.nextval from dual") - end - end - end - def test_decimal_scale_without_precision_should_raise e = assert_raise(ArgumentError) do Person.connection.create_table :test_decimal_scales, force: true do |t| |