aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/schema/oracle_specific_schema.rb
diff options
context:
space:
mode:
authorRaimonds Simanovskis <raimonds.simanovskis@gmail.com>2009-03-15 14:28:07 +0200
committerMichael Koziarski <michael@koziarski.com>2009-06-09 20:26:55 +1200
commit63091cef2eeed500c1cf930f04e653b269abe12b (patch)
tree7f22dcf32b98846be55361c107354e01015f235c /activerecord/test/schema/oracle_specific_schema.rb
parent1d57ccbc6f80a506e5c3867976793310e9148f03 (diff)
downloadrails-63091cef2eeed500c1cf930f04e653b269abe12b.tar.gz
rails-63091cef2eeed500c1cf930f04e653b269abe12b.tar.bz2
rails-63091cef2eeed500c1cf930f04e653b269abe12b.zip
disabled base_test.rb tests that were not Oracle compatible (TIME datatype is not supported on Oracle, UPDATE does not support ORDER BY) _before_type_cast on Oracle returns Time and not String added Oracle specific schema definition that was missing for test_default_values test
Signed-off-by: Michael Koziarski <michael@koziarski.com>
Diffstat (limited to 'activerecord/test/schema/oracle_specific_schema.rb')
-rw-r--r--activerecord/test/schema/oracle_specific_schema.rb19
1 files changed, 19 insertions, 0 deletions
diff --git a/activerecord/test/schema/oracle_specific_schema.rb b/activerecord/test/schema/oracle_specific_schema.rb
new file mode 100644
index 0000000000..2d87f34625
--- /dev/null
+++ b/activerecord/test/schema/oracle_specific_schema.rb
@@ -0,0 +1,19 @@
+ActiveRecord::Schema.define do
+
+ execute "drop table test_oracle_defaults" rescue nil
+ execute "drop sequence test_oracle_defaults_seq" rescue nil
+
+ execute <<-SQL
+create table test_oracle_defaults (
+ id integer not null primary key,
+ test_char char(1) default 'X' not null,
+ test_string varchar2(20) default 'hello' not null,
+ test_int integer default 3 not null
+)
+ SQL
+
+ execute <<-SQL
+create sequence test_oracle_defaults_seq minvalue 10000
+ SQL
+
+end