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.6.1 lib/inferno/db/migrations/004_add_request_results_table.rb
inferno_core-0.6.0 lib/inferno/db/migrations/004_add_request_results_table.rb
inferno_core-0.5.4 lib/inferno/db/migrations/004_add_request_results_table.rb
inferno_core-0.5.3 lib/inferno/db/migrations/004_add_request_results_table.rb
inferno_core-0.5.2 lib/inferno/db/migrations/004_add_request_results_table.rb
inferno_core-0.5.1 lib/inferno/db/migrations/004_add_request_results_table.rb
inferno_core-0.5.0 lib/inferno/db/migrations/004_add_request_results_table.rb
inferno_core-0.4.44 lib/inferno/db/migrations/004_add_request_results_table.rb
inferno_core-0.4.43 lib/inferno/db/migrations/004_add_request_results_table.rb
inferno_core-0.4.42 lib/inferno/db/migrations/004_add_request_results_table.rb
inferno_core-0.4.41 lib/inferno/db/migrations/004_add_request_results_table.rb
inferno_core-0.4.40 lib/inferno/db/migrations/004_add_request_results_table.rb
inferno_core-0.4.39 lib/inferno/db/migrations/004_add_request_results_table.rb
inferno_core-0.4.38 lib/inferno/db/migrations/004_add_request_results_table.rb
inferno_core-0.4.35 lib/inferno/db/migrations/004_add_request_results_table.rb
inferno_core-0.4.34 lib/inferno/db/migrations/004_add_request_results_table.rb
inferno_core-0.4.33 lib/inferno/db/migrations/004_add_request_results_table.rb
inferno_core-0.4.32 lib/inferno/db/migrations/004_add_request_results_table.rb
inferno_core-0.4.31 lib/inferno/db/migrations/004_add_request_results_table.rb
inferno_core-0.4.30 lib/inferno/db/migrations/004_add_request_results_table.rb