Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class CreatePipelineSpecs < ActiveRecord::Migration
- def change
- create_table :pipeline_specs do |t|
- t.integer :id_no
- t.string :od
- t.string :wt
- t.string :material
- t.string :spec_type
- t.string :spec_grade
- t.string :mop
- t.string :stress_level
- t.string :joints
- t.text :notes
- t.string :ip
- t.references :pipeline, index: true, foreign_key: false
- t.timestamps null: false
- end
- add_index :pipeline_specs, :id_no
- end
- end
- create_table "pipeline_specs", force: :cascade do |t|
- t.integer "id_no"
- t.string "od"
- t.string "wt"
- t.string "material"
- t.string "spec_type"
- t.string "spec_grade"
- t.string "mop"
- t.string "stress_level"
- t.string "joints"
- t.text "notes"
- t.string "ip"
- t.integer "pipelines_id"
- t.datetime "created_at", null: false
- t.datetime "updated_at", null: false
- end
- add_index "pipeline_specs", ["id_no"], name: "index_pipeline_specs_on_id_no", using: :btree
- 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