Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. class CreatePipelineSpecs < ActiveRecord::Migration
  2. def change
  3. create_table :pipeline_specs do |t|
  4. t.integer :id_no
  5. t.string :od
  6. t.string :wt
  7. t.string :material
  8. t.string :spec_type
  9. t.string :spec_grade
  10. t.string :mop
  11. t.string :stress_level
  12. t.string :joints
  13. t.text :notes
  14. t.string :ip
  15. t.references :pipeline, index: true, foreign_key: false
  16.  
  17. t.timestamps null: false
  18. end
  19. add_index :pipeline_specs, :id_no
  20. end
  21. end
  22.  
  23. create_table "pipeline_specs", force: :cascade do |t|
  24. t.integer "id_no"
  25. t.string "od"
  26. t.string "wt"
  27. t.string "material"
  28. t.string "spec_type"
  29. t.string "spec_grade"
  30. t.string "mop"
  31. t.string "stress_level"
  32. t.string "joints"
  33. t.text "notes"
  34. t.string "ip"
  35. t.integer "pipelines_id"
  36. t.datetime "created_at", null: false
  37. t.datetime "updated_at", null: false
  38. end
  39.  
  40. add_index "pipeline_specs", ["id_no"], name: "index_pipeline_specs_on_id_no", using: :btree
  41. add_index "pipeline_specs", ["pipelines_id"], name: "index_pipeline_specs_on_pipelines_id", using: :btree
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement