Sha256: cc74eb7d8480284b330bbab29be83806c9da5436d79525165bff47bd09361ef6

Contents?: true

Size: 611 Bytes

Versions: 1

Compression:

Stored size: 611 Bytes

Contents

class CreateCalendarInvites < ActiveRecord::Migration
  def change
    create_table :calendar_invites do |t|

      t.string      :title
      t.text        :invite_text
      t.references  :calendar_event
      t.integer     :inviter_id
      t.integer     :invitee_id

      t.timestamps

    end

    add_index :calendar_invites, :id, :name => "calendar_invite_id_idx"
    add_index :calendar_invites, :calendar_event_id, :name => "ci_evt_id_idx"
    add_index :calendar_invites, :inviter_id, :name => "ci_inviter_id_idx"
    add_index :calendar_invites, :invitee_id, :name => "ci_invitee_id_idx"

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
erp_work_effort-4.2.0 db/migrate/20150707164520_create_calendar_invites.rb