Merge pull request #354 from kikyous/kikyous-patch-1
update_column instead of change_column
This commit is contained in:
commit
92a707e89d
|
@ -524,7 +524,7 @@ successful or `false` if errors occur. Exceptions are not raised.
|
||||||
If you want make sure the state gets saved without running validations (and
|
If you want make sure the state gets saved without running validations (and
|
||||||
thereby maybe persisting aninvalid object state), simply tell AASM to skip the
|
thereby maybe persisting aninvalid object state), simply tell AASM to skip the
|
||||||
validations. Be aware that when skipping validations, only the state column will
|
validations. Be aware that when skipping validations, only the state column will
|
||||||
be updated in the database (just like ActiveRecord `change_column` is working).
|
be updated in the database (just like ActiveRecord `update_column` is working).
|
||||||
|
|
||||||
```ruby
|
```ruby
|
||||||
class Job < ActiveRecord::Base
|
class Job < ActiveRecord::Base
|
||||||
|
|
Loading…
Reference in New Issue