mirror of
https://github.com/aasm/aasm
synced 2023-03-27 23:22:41 -04:00
parent
594bccf133
commit
6626710c53
1 changed files with 4 additions and 1 deletions
|
@ -1084,7 +1084,10 @@ end
|
|||
```
|
||||
|
||||
Whatever column name is used, make sure to add a migration to provide this column
|
||||
(of type `string`):
|
||||
(of type `string`).
|
||||
Do not add default value for column at the database level. If you add default
|
||||
value in database then AASM callbacks on the initial state will not be fired upon
|
||||
instantiation of the model.
|
||||
|
||||
```ruby
|
||||
class AddJobState < ActiveRecord::Migration
|
||||
|
|
Loading…
Reference in a new issue