Class: CreatePermitsInvites
- Inherits:
-
Object
- Object
- CreatePermitsInvites
- Defined in:
- lib/generators/permits/install/templates/create_permits_invites.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 |
# File 'lib/generators/permits/install/templates/create_permits_invites.rb', line 2 def change create_table :permits_invites, id: :uuid do |t| t.references :invited_by, polymorphic: true, index: true, type: :uuid, null: false t.references :invitee, polymorphic: true, index: true, type: :uuid, null: true t.string :email, null: false t.string :aasm_state, null: false t.string :slug, null: false t.datetime :started_at t.datetime :ended_at t. end end |