From 0293c34459aa95f268bdbd02f8a35a3cc8a1c6a2 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Mon, 10 Jul 2006 18:10:50 +0000 Subject: Oracle: BigDecimal support. Closes #5667. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4600 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/test/migration_test.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'activerecord/test') diff --git a/activerecord/test/migration_test.rb b/activerecord/test/migration_test.rb index 337d4c8861..3d4dfedf3e 100644 --- a/activerecord/test/migration_test.rb +++ b/activerecord/test/migration_test.rb @@ -39,7 +39,7 @@ if ActiveRecord::Base.connection.supports_migrations? end Reminder.reset_column_information - %w(last_name key bio age height wealth birthday favorite_day + %w(last_name key bio age height wealth birthday favorite_day male mail administrator).each do |column| Person.connection.remove_column('people', column) rescue nil end @@ -200,7 +200,11 @@ if ActiveRecord::Base.connection.supports_migrations? Person.reset_column_information # Do a manual insertion - Person.connection.execute "insert into people (wealth) values (12345678901234567890.0123456789)" + if current_adapter?(:OracleAdapter) + Person.connection.execute "insert into people (id, wealth) values (people_seq.nextval, 12345678901234567890.0123456789)" + else + Person.connection.execute "insert into people (wealth) values (12345678901234567890.0123456789)" + end # SELECT row = Person.find(:first) -- cgit v1.2.3