Sha256: 95ac6c257fa5918a5ef7d2fd05d20d569d4efbec85024503546106ef5cd1a692

Contents?: true

Size: 201 Bytes

Versions: 63

Compression:

Stored size: 201 Bytes

Contents

class AddQuestionnaireRefToUsers < ActiveRecord::Migration[4.2]
  def change
    change_table(:questionnaires) do |t|
      t.references :user
    end
    add_index :questionnaires, :user_id
  end
end

Version data entries

63 entries across 63 versions & 1 rubygems

Version Path
hackathon_manager-0.14.1 db/migrate/20150111012709_add_questionnaire_ref_to_users.rb
hackathon_manager-0.14.0 db/migrate/20150111012709_add_questionnaire_ref_to_users.rb
hackathon_manager-0.13.12 db/migrate/20150111012709_add_questionnaire_ref_to_users.rb
hackathon_manager-0.13.11 db/migrate/20150111012709_add_questionnaire_ref_to_users.rb
hackathon_manager-0.13.10 db/migrate/20150111012709_add_questionnaire_ref_to_users.rb
hackathon_manager-0.13.9 db/migrate/20150111012709_add_questionnaire_ref_to_users.rb
hackathon_manager-0.13.8 db/migrate/20150111012709_add_questionnaire_ref_to_users.rb
hackathon_manager-0.13.7 db/migrate/20150111012709_add_questionnaire_ref_to_users.rb
hackathon_manager-0.13.6 db/migrate/20150111012709_add_questionnaire_ref_to_users.rb
hackathon_manager-0.13.5 db/migrate/20150111012709_add_questionnaire_ref_to_users.rb
hackathon_manager-0.13.4 db/migrate/20150111012709_add_questionnaire_ref_to_users.rb
hackathon_manager-0.13.3 db/migrate/20150111012709_add_questionnaire_ref_to_users.rb
hackathon_manager-0.13.2 db/migrate/20150111012709_add_questionnaire_ref_to_users.rb
hackathon_manager-0.13.1 db/migrate/20150111012709_add_questionnaire_ref_to_users.rb
hackathon_manager-0.13.0 db/migrate/20150111012709_add_questionnaire_ref_to_users.rb
hackathon_manager-0.12.2 db/migrate/20150111012709_add_questionnaire_ref_to_users.rb
hackathon_manager-0.12.1 db/migrate/20150111012709_add_questionnaire_ref_to_users.rb
hackathon_manager-0.12.0 db/migrate/20150111012709_add_questionnaire_ref_to_users.rb
hackathon_manager-0.11.2 db/migrate/20150111012709_add_questionnaire_ref_to_users.rb
hackathon_manager-0.11.1 db/migrate/20150111012709_add_questionnaire_ref_to_users.rb