Sha256: b461f6c0b5dc8ec06bc16c97d916872063a2af62f104894bd99d0201ecac7108

Contents?: true

Size: 458 Bytes

Versions: 5

Compression:

Stored size: 458 Bytes

Contents

class CreateInvites < ActiveRecord::Migration<%= migration_version %>
  def change
    create_table :invites do |t|
      t.string :email
      t.string :token
      t.integer :sender_id
      t.integer :recipient_id
      t.integer :invitable_id
      t.string  :invitable_type
      t.timestamps
      t.index :email
      t.index :token
      t.index [:invitable_id, :invitable_type]
      t.index :recipient_id
      t.index :sender_id
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
invitation-0.6.1 lib/generators/invitation/install/templates/db/migrate/create_invites.rb
invitation-0.6.0 lib/generators/invitation/install/templates/db/migrate/create_invites.rb
invitation-0.5.1 lib/generators/invitation/install/templates/db/migrate/create_invites.rb
invitation-0.5.0 lib/generators/invitation/install/templates/db/migrate/create_invites.rb
invitation-0.4.5 lib/generators/invitation/install/templates/db/migrate/create_invites.rb