Sha256: 06943a7e4f6e829fa3fa20193408d1fe952c0b5f709d9f5cadbf548db5d2ed01

Contents?: true

Size: 815 Bytes

Versions: 1

Compression:

Stored size: 815 Bytes

Contents

# This migration comes from fe_engine (originally 20131003044250)
class CreateReferenceSheets < ActiveRecord::Migration
  def change
    create_table Fe::ReferenceSheet.table_name do |t|
      t.integer  :question_id
      t.integer  :applicant_answer_sheet_id
      t.datetime :email_sent_at
      t.string   :relationship
      t.string   :title
      t.string   :first_name
      t.string   :last_name
      t.string   :phone
      t.string   :email
      t.string   :status
      t.datetime :submitted_at
      t.datetime :started_at
      t.string   :access_key
      t.timestamps
    end
    
    add_column Fe::Element.table_name, :related_question_sheet_id, :integer
    add_index Fe::ReferenceSheet.table_name, :question_id
    add_index Fe::ReferenceSheet.table_name, :applicant_answer_sheet_id
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fe-1.0.0 spec/dummy/db/migrate/20141203214018_create_reference_sheets.fe_engine.rb