Sha256: a208ddc8f41eb3903e96a76d2e2dd8ac4f741bc87d16cc64f3736dc519b47274

Contents?: true

Size: 828 Bytes

Versions: 37

Compression:

Stored size: 828 Bytes

Contents

class CreateParticipants < ActiveRecord::Migration
  def change
    create_table :participants, options: 'DEFAULT CHARSET=utf8' do |t|
      t.string :participant_key
      t.string :participant_identifier
      t.string :participant_code
      t.string :first_name
      t.string :last_name
      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
      t.string :fax 
      t.string :website_url
      t.string :photo_url

      t.timestamps
    end
    add_index :participants, :email
    add_index :participants, :participant_identifier
    add_index :participants, :participant_key
    add_index :participants, [:first_name, :last_name, :email]
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
reso-0.1.6.7 lib/generators/reso/templates/create_participants.rb
reso-0.1.6.6 lib/generators/reso/templates/create_participants.rb
reso-0.1.6.5 lib/generators/reso/templates/create_participants.rb
reso-0.1.6.4 lib/generators/reso/templates/create_participants.rb
reso-0.1.6.3 lib/generators/reso/templates/create_participants.rb
reso-0.1.6.2 lib/generators/reso/templates/create_participants.rb
reso-0.1.6.1 lib/generators/reso/templates/create_participants.rb
reso-0.1.6 lib/generators/reso/templates/create_participants.rb
reso-0.1.5.11 lib/generators/reso/templates/create_participants.rb
reso-0.1.5.10 lib/generators/reso/templates/create_participants.rb
reso-0.1.5.9 lib/generators/reso/templates/create_participants.rb
reso-0.1.5.7 lib/generators/reso/templates/create_participants.rb
reso-0.1.5.6 lib/generators/reso/templates/create_participants.rb
reso-0.1.5.5 lib/generators/reso/templates/create_participants.rb
reso-0.1.5.4 lib/generators/reso/templates/create_participants.rb
reso-0.1.5.3 lib/generators/reso/templates/create_participants.rb
reso-0.1.5.2 lib/generators/reso/templates/create_participants.rb
reso-0.1.5.1 lib/generators/reso/templates/create_participants.rb
reso-0.1.5.0 lib/generators/reso/templates/create_participants.rb
reso-0.1.4.10 lib/generators/reso/templates/create_participants.rb