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.5.11 db/migrate/20150111012709_add_questionnaire_ref_to_users.rb
hackathon_manager-0.5.10 db/migrate/20150111012709_add_questionnaire_ref_to_users.rb
hackathon_manager-0.5.9 db/migrate/20150111012709_add_questionnaire_ref_to_users.rb
hackathon_manager-0.5.8 db/migrate/20150111012709_add_questionnaire_ref_to_users.rb
hackathon_manager-0.5.7 db/migrate/20150111012709_add_questionnaire_ref_to_users.rb
hackathon_manager-0.5.6 db/migrate/20150111012709_add_questionnaire_ref_to_users.rb
hackathon_manager-0.5.5 db/migrate/20150111012709_add_questionnaire_ref_to_users.rb
hackathon_manager-0.5.4 db/migrate/20150111012709_add_questionnaire_ref_to_users.rb
hackathon_manager-0.5.3 db/migrate/20150111012709_add_questionnaire_ref_to_users.rb
hackathon_manager-0.5.2 db/migrate/20150111012709_add_questionnaire_ref_to_users.rb
hackathon_manager-0.5.1 db/migrate/20150111012709_add_questionnaire_ref_to_users.rb
hackathon_manager-0.5.0 db/migrate/20150111012709_add_questionnaire_ref_to_users.rb
hackathon_manager-0.4.4 db/migrate/20150111012709_add_questionnaire_ref_to_users.rb
hackathon_manager-0.4.3 db/migrate/20150111012709_add_questionnaire_ref_to_users.rb
hackathon_manager-0.4.2 db/migrate/20150111012709_add_questionnaire_ref_to_users.rb
hackathon_manager-0.4.1 db/migrate/20150111012709_add_questionnaire_ref_to_users.rb
hackathon_manager-0.4.0 db/migrate/20150111012709_add_questionnaire_ref_to_users.rb
hackathon_manager-0.3.3 db/migrate/20150111012709_add_questionnaire_ref_to_users.rb
hackathon_manager-0.3.2 db/migrate/20150111012709_add_questionnaire_ref_to_users.rb
hackathon_manager-0.3.1 db/migrate/20150111012709_add_questionnaire_ref_to_users.rb