aboutsummaryrefslogtreecommitdiffstats
path: root/spec/support/schemas/oracle_schema.rb
blob: c8207c8d98a603aeddb8ce6bcac78453b5c0578f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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