Sha256: 51e678bc5c960d4f9713d1c69538150efa4e0f7ce6c2ccaf136b37281d8e25f6

Contents?: true

Size: 403 Bytes

Versions: 14

Compression:

Stored size: 403 Bytes

Contents

class CreateParticipants < ActiveRecord::Migration
  def change
    create_table :participants do |t|
      t.string :email, null: false, default: ""
      t.string :phone_number
      t.string :study_id

      t.timestamps
    end

    add_index :participants, :email, unique: true
    add_index :participants, :phone_number, unique: true
    add_index :participants, :study_id, unique: true
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
think_feel_do_dashboard-1.2.1 spec/dummy/db/migrate/20141020185953_create_participants.rb
think_feel_do_dashboard-1.2.0.beta1 spec/dummy/db/migrate/20141020185953_create_participants.rb
think_feel_do_dashboard-1.1.21 spec/dummy/db/migrate/20141020185953_create_participants.rb
think_feel_do_dashboard-1.1.20 spec/dummy/db/migrate/20141020185953_create_participants.rb
think_feel_do_dashboard-1.1.19 spec/dummy/db/migrate/20141020185953_create_participants.rb
think_feel_do_dashboard-1.1.18 spec/dummy/db/migrate/20141020185953_create_participants.rb
think_feel_do_dashboard-1.1.17 spec/dummy/db/migrate/20141020185953_create_participants.rb
think_feel_do_dashboard-1.1.16 spec/dummy/db/migrate/20141020185953_create_participants.rb
think_feel_do_dashboard-1.1.15 spec/dummy/db/migrate/20141020185953_create_participants.rb
think_feel_do_dashboard-1.1.14 spec/dummy/db/migrate/20141020185953_create_participants.rb
think_feel_do_dashboard-1.1.13 spec/dummy/db/migrate/20141020185953_create_participants.rb
think_feel_do_dashboard-1.1.12 spec/dummy/db/migrate/20141020185953_create_participants.rb
think_feel_do_dashboard-1.1.11 spec/dummy/db/migrate/20141020185953_create_participants.rb
think_feel_do_dashboard-1.1.10 spec/dummy/db/migrate/20141020185953_create_participants.rb