Sha256: c6d5d053fd6c3af5c10995512d631761b4e8b6e414cf692c1beb54abdae7e789

Contents?: true

Size: 376 Bytes

Versions: 83

Compression:

Stored size: 376 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, size: 36, key: [:id]
      foreign_key :requests_id, :requests, index: true, type: Integer, null: false, size: 36, key: [:index]
    end
  end
end

Version data entries

83 entries across 83 versions & 1 rubygems

Version Path
inferno_core-0.1.1.pre lib/inferno/db/migrations/004_add_request_results_table.rb
inferno_core-0.1.0 lib/inferno/db/migrations/004_add_request_results_table.rb
inferno_core-0.1.0.pre lib/inferno/db/migrations/004_add_request_results_table.rb