Class: CreateOutboundRequests
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateOutboundRequests
- Defined in:
- lib/generators/easy_admin/templates/create_outbound_requests.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/generators/easy_admin/templates/create_outbound_requests.rb', line 2 def change create_table :outbound_requests do |t| t.string :service t.string :action t.string :identifier t.text :params t.string :response_code t.text :response_body t.text :error t. end add_index :outbound_requests, :service add_index :outbound_requests, [:service, :action] add_index :outbound_requests, [:service, :identifier] end |