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.11.0 db/migrate/20150111012709_add_questionnaire_ref_to_users.rb
hackathon_manager-0.10.3 db/migrate/20150111012709_add_questionnaire_ref_to_users.rb
hackathon_manager-0.10.2 db/migrate/20150111012709_add_questionnaire_ref_to_users.rb
hackathon_manager-0.10.1 db/migrate/20150111012709_add_questionnaire_ref_to_users.rb
hackathon_manager-0.10.0 db/migrate/20150111012709_add_questionnaire_ref_to_users.rb
hackathon_manager-0.9.2 db/migrate/20150111012709_add_questionnaire_ref_to_users.rb
hackathon_manager-0.9.1 db/migrate/20150111012709_add_questionnaire_ref_to_users.rb
hackathon_manager-0.9.0 db/migrate/20150111012709_add_questionnaire_ref_to_users.rb
hackathon_manager-0.8.2 db/migrate/20150111012709_add_questionnaire_ref_to_users.rb
hackathon_manager-0.8.1 db/migrate/20150111012709_add_questionnaire_ref_to_users.rb
hackathon_manager-0.8.0 db/migrate/20150111012709_add_questionnaire_ref_to_users.rb
hackathon_manager-0.7.1 db/migrate/20150111012709_add_questionnaire_ref_to_users.rb
hackathon_manager-0.7.0 db/migrate/20150111012709_add_questionnaire_ref_to_users.rb
hackathon_manager-0.6.6 db/migrate/20150111012709_add_questionnaire_ref_to_users.rb
hackathon_manager-0.6.5 db/migrate/20150111012709_add_questionnaire_ref_to_users.rb
hackathon_manager-0.6.4 db/migrate/20150111012709_add_questionnaire_ref_to_users.rb
hackathon_manager-0.6.3 db/migrate/20150111012709_add_questionnaire_ref_to_users.rb
hackathon_manager-0.6.2 db/migrate/20150111012709_add_questionnaire_ref_to_users.rb
hackathon_manager-0.6.1 db/migrate/20150111012709_add_questionnaire_ref_to_users.rb
hackathon_manager-0.6.0 db/migrate/20150111012709_add_questionnaire_ref_to_users.rb