Sha256: 72474cf5db32429610541cf8190257bea383db7f891eb61805286ec7214c0755

Contents?: true

Size: 477 Bytes

Versions: 2

Compression:

Stored size: 477 Bytes

Contents

class CreateSocialFrameworkParticipantEvents < ActiveRecord::Migration
  def change
    create_table :social_framework_participant_events do |t|
      t.belongs_to :event, index: true, null: false
      t.belongs_to :schedule, index: true, null: false
      t.boolean :confirmed, default: false
      t.string :role, default: "participant"
    end

    add_index :social_framework_participant_events, [:schedule_id, :event_id], unique: true, name: :participant_event
  end
end

Version data entries

2 entries across 1 versions & 1 rubygems

Version Path
social_framework-1.0.1 db/migrate/20160406165523_create_social_framework_participant_events.rb
social_framework-1.0.1 db/tmp/migrate/20160406165523_create_social_framework_participant_events.rb