Class: CreatePendingApprovals
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreatePendingApprovals
- Defined in:
- lib/generators/pravangi/templates/create_pending_approvals.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 |
# File 'lib/generators/pravangi/templates/create_pending_approvals.rb', line 2 def change create_table :pending_approvals do |t| t.string :resource_type, null: false t.integer :resource_id, null: false t.text :object_changes t.text :raw_object, null: false t.boolean :is_approved, null: false, default: false t.boolean :is_rejected, null: false, default: false t. null: false end end |