aboutsummaryrefslogtreecommitdiffstats
path: root/spec/support/schemas/oracle_schema.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/schemas/oracle_schema.rb')
-rw-r--r--spec/support/schemas/oracle_schema.rb20
1 files changed, 20 insertions, 0 deletions
diff --git a/spec/support/schemas/oracle_schema.rb b/spec/support/schemas/oracle_schema.rb
new file mode 100644
index 0000000000..c8207c8d98
--- /dev/null
+++ b/spec/support/schemas/oracle_schema.rb
@@ -0,0 +1,20 @@
+ActiveRecord::Schema.define do
+ suppress_messages do
+ create_table :users, :primary_key_trigger => true, :force => true do |t|
+ t.string :name, :limit => 255, :null => false
+ end
+
+ create_table :photos, :primary_key_trigger => true, :force => true do |t|
+ t.integer :user_id
+ t.integer :camera_id
+ end
+
+ create_table :developers, :primary_key_trigger => true, :force => true do |t|
+ t.string :name, :limit => 255, :null => false
+ t.integer :salary
+ t.string :department, :limit => 255, :null => false
+ t.timestamp :created_at, :null => false
+ end
+
+ end
+end