Sha256: 96bfe3309b4ff656e0922f39a75e315607f8aef60564067dba091c0fce42dace

Contents?: true

Size: 328 Bytes

Versions: 7

Compression:

Stored size: 328 Bytes

Contents

Sequel.migration do
  change do
    create_table :requests_results do
      # using results_id instead of result_id to avoid ambiguous column error
      foreign_key :results_id, :results, index: true, type: String, null: false
      foreign_key :requests_id, :requests, index: true, type: String, null: false
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
inferno_core-0.0.8 lib/inferno/db/migrations/004_add_request_results_table.rb
inferno_core-0.0.8.pre2 lib/inferno/db/migrations/004_add_request_results_table.rb
inferno_core-0.0.8.pre lib/inferno/db/migrations/004_add_request_results_table.rb
inferno_core-0.0.7 lib/inferno/db/migrations/004_add_request_results_table.rb
inferno_core-0.0.6 lib/inferno/db/migrations/004_add_request_results_table.rb
inferno_core-0.0.5 lib/inferno/db/migrations/004_add_request_results_table.rb
inferno_core-0.0.4 lib/inferno/db/migrations/004_add_request_results_table.rb