lib/generators/reso/templates/create_participants.rb in reso-0.1.0.0 vs lib/generators/reso/templates/create_participants.rb in reso-0.1.0.1

- old
+ new

@@ -4,11 +4,11 @@ t.string :participant_key t.string :participant_identifier t.string :participant_code t.string :first_name t.string :last_name - t.references :person, null: true, foreign_key: true + t.references :person, index:true, foreign_key: true t.references :participant_role, index: true t.string :primary_contact_phone t.string :office_phone t.string :mobile_phone t.string :email @@ -16,11 +16,11 @@ t.string :website_url t.string :photo_url t.timestamps end - add_index :participants, :participant_key + add_index :participants, :email add_index :participants, :participant_identifier - add_index :participants, :person_id + add_index :participants, :participant_key add_index :participants, [:first_name, :last_name, :email] end end \ No newline at end of file