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.4.9 lib/inferno/db/migrations/004_add_request_results_table.rb
inferno_core-0.4.8 lib/inferno/db/migrations/004_add_request_results_table.rb
inferno_core-0.4.7 lib/inferno/db/migrations/004_add_request_results_table.rb
inferno_core-0.4.7.pre lib/inferno/db/migrations/004_add_request_results_table.rb
inferno_core-0.4.6 lib/inferno/db/migrations/004_add_request_results_table.rb
inferno_core-0.4.5 lib/inferno/db/migrations/004_add_request_results_table.rb
inferno_core-0.4.4 lib/inferno/db/migrations/004_add_request_results_table.rb
inferno_core-0.4.3 lib/inferno/db/migrations/004_add_request_results_table.rb
inferno_core-0.4.2 lib/inferno/db/migrations/004_add_request_results_table.rb
inferno_core-0.4.2.pre lib/inferno/db/migrations/004_add_request_results_table.rb
inferno_core-0.4.1 lib/inferno/db/migrations/004_add_request_results_table.rb
inferno_core-0.4.1.pre2 lib/inferno/db/migrations/004_add_request_results_table.rb
inferno_core-0.4.1.pre lib/inferno/db/migrations/004_add_request_results_table.rb
inferno_core-0.4.0 lib/inferno/db/migrations/004_add_request_results_table.rb
inferno_core-0.3.12 lib/inferno/db/migrations/004_add_request_results_table.rb
inferno_core-0.3.11 lib/inferno/db/migrations/004_add_request_results_table.rb
inferno_core-0.3.10 lib/inferno/db/migrations/004_add_request_results_table.rb
inferno_core-0.3.9 lib/inferno/db/migrations/004_add_request_results_table.rb
inferno_core-0.3.8 lib/inferno/db/migrations/004_add_request_results_table.rb
inferno_core-0.3.7 lib/inferno/db/migrations/004_add_request_results_table.rb