Sha256: 114c6f99a263b5b00aa4e7c98cb5b679d661a7b99ba224031c98ccbe49780e13

Contents?: true

Size: 367 Bytes

Versions: 15

Compression:

Stored size: 367 Bytes

Contents

class CreateJoinTable < ActiveRecord::Migration[4.2]
  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

15 entries across 15 versions & 1 rubygems

Version Path
fe-2.1.6.1 db/migrate/20131003044714_create_join_table.rb
fe-2.1.6 db/migrate/20131003044714_create_join_table.rb
fe-2.1.5 db/migrate/20131003044714_create_join_table.rb
fe-2.1.4 db/migrate/20131003044714_create_join_table.rb
fe-2.1.3 db/migrate/20131003044714_create_join_table.rb
fe-2.1.2 db/migrate/20131003044714_create_join_table.rb
fe-2.1.1 db/migrate/20131003044714_create_join_table.rb
fe-2.0.8 db/migrate/20131003044714_create_join_table.rb
fe-2.0.6 db/migrate/20131003044714_create_join_table.rb
fe-2.0.5 db/migrate/20131003044714_create_join_table.rb
fe-2.0.4 db/migrate/20131003044714_create_join_table.rb
fe-2.0.3 db/migrate/20131003044714_create_join_table.rb
fe-2.0.2 db/migrate/20131003044714_create_join_table.rb
fe-2.0.1 db/migrate/20131003044714_create_join_table.rb
fe-2.0.0 db/migrate/20131003044714_create_join_table.rb