Sha256: e5d23c60e6d321ed5e5918c8e08c623e7ca90ff7098ec999e42ceccf7e9b1b77

Contents?: true

Size: 428 Bytes

Versions: 1

Compression:

Stored size: 428 Bytes

Contents

# This migration comes from fe_engine (originally 20131003044714)
class CreateJoinTable < ActiveRecord::Migration
  def change
    create_table Fe::AnswerSheetQuestionSheet.table_name do |t|
      t.integer :answer_sheet_id
      t.integer :question_sheet_id
      t.timestamps
    end

    add_index Fe::AnswerSheetQuestionSheet.table_name, [:answer_sheet_id, :question_sheet_id], name: 'answer_sheet_question_sheet'
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fe-1.0.0 spec/dummy/db/migrate/20141203214022_create_join_table.fe_engine.rb