Sha256: 12e65cc6f1e7d49b60631c1dc239ebb8fba3ee742f1d8eb4b0ecc4678a1bac8d

Contents?: true

Size: 374 Bytes

Versions: 35

Compression:

Stored size: 374 Bytes

Contents

class CreateUserInvitations < ActiveRecord::Migration
  def up
    create_table :user_invitations, id: false do |t|
      t.uuid :id, primary_key: true
      t.uuid :invited_by
      t.column :email, :string
      t.column :sent_at, :datetime
      t.uuid :account_id
    end
    add_index :user_invitations, :id
  end

  def down
    drop_table :user_invitations
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
iugusdk-1.0.11 db/migrate/20120629154429_create_user_invitations.rb
iugusdk-1.0.10 db/migrate/20120629154429_create_user_invitations.rb
iugusdk-1.0.9 db/migrate/20120629154429_create_user_invitations.rb
iugusdk-1.0.8 db/migrate/20120629154429_create_user_invitations.rb
iugusdk-1.0.7 db/migrate/20120629154429_create_user_invitations.rb
iugusdk-1.0.6 db/migrate/20120629154429_create_user_invitations.rb
iugusdk-1.0.5 db/migrate/20120629154429_create_user_invitations.rb
iugusdk-1.0.4 db/migrate/20120629154429_create_user_invitations.rb
iugusdk-1.0.3 db/migrate/20120629154429_create_user_invitations.rb
iugusdk-1.0.2 db/migrate/20120629154429_create_user_invitations.rb
iugusdk-1.0.1 db/migrate/20120629154429_create_user_invitations.rb
iugusdk-1.0.0.alpha.32 db/migrate/20120629154429_create_user_invitations.rb
iugusdk-1.0.0.alpha.31 db/migrate/20120629154429_create_user_invitations.rb
iugusdk-1.0.0.alpha.30 db/migrate/20120629154429_create_user_invitations.rb
iugusdk-1.0.0.alpha.29 db/migrate/20120629154429_create_user_invitations.rb
iugusdk-1.0.0.alpha.28 db/migrate/20120629154429_create_user_invitations.rb
iugusdk-1.0.0.alpha.27 db/migrate/20120629154429_create_user_invitations.rb
iugusdk-1.0.0.alpha.26 db/migrate/20120629154429_create_user_invitations.rb
iugusdk-1.0.0.alpha.25 db/migrate/20120629154429_create_user_invitations.rb
iugusdk-1.0.0.alpha.24 db/migrate/20120629154429_create_user_invitations.rb