Skip to content

Commit

Permalink
modify aasm_state migration
Browse files Browse the repository at this point in the history
  • Loading branch information
xueshaojie1 committed Mar 14, 2019
1 parent 99463b8 commit b91e237
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/migrate/20190313040959_add_aasm_state_to_order.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
class AddAasmStateToOrder < ActiveRecord::Migration[5.0]
def change
add_column :orders, :aasm_state, :string, default: "order_placed"
add_index :orders, :assm_state
add_index :orders, :aasm_state
end
end

0 comments on commit b91e237

Please sign in to comment.