diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-12-01 15:14:56 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-12-01 15:14:56 -0800 |
commit | c15c14563e6604aab232336b16e14f1f235cc19d (patch) | |
tree | 2ee63f5c72af240f68d2351472e9600f3bfce3e5 /activerecord/test/cases | |
parent | 85a5318c2b03bd4a9b5e7ce096207a3a9f052419 (diff) | |
download | rails-c15c14563e6604aab232336b16e14f1f235cc19d.tar.gz rails-c15c14563e6604aab232336b16e14f1f235cc19d.tar.bz2 rails-c15c14563e6604aab232336b16e14f1f235cc19d.zip |
removing duplicate test
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r-- | activerecord/test/cases/migration_test.rb | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/activerecord/test/cases/migration_test.rb b/activerecord/test/cases/migration_test.rb index eed35e83f1..b698a5a3cf 100644 --- a/activerecord/test/cases/migration_test.rb +++ b/activerecord/test/cases/migration_test.rb @@ -445,43 +445,6 @@ if ActiveRecord::Base.connection.supports_migrations? Person.connection.drop_table table_name rescue nil end - def test_create_table_with_custom_sequence_name - return unless current_adapter? :OracleAdapter - - # table name is 29 chars, the standard sequence name will - # be 33 chars and fail - assert_raise(ActiveRecord::StatementInvalid) do - begin - 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 - end - - # should be all good w/ a custom sequence name - assert_nothing_raised do - begin - 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 - end - - # confirm the custom sequence got dropped - assert_raise(ActiveRecord::StatementInvalid) do - Person.connection.execute("select suitably_short_seq.nextval from dual") - end - end - # Sybase, and SQLite3 will not allow you to add a NOT NULL # column to a table without a default value. unless current_adapter?(:SybaseAdapter, :SQLite3Adapter) |