Statesman v1.0.0.beta1 Release Notes

Release Date: 2014-10-09 // over 9 years ago
  • 💥 Breaking changes

    • Classes which include ActiveRecordModel must define an initial_state class method.

    🛠 Fixes

    • ActiveRecordModel.in_state and ActiveRecordModel.not_in_state now handle inital states correctly (patch by @isaacseymour)

    Additions

    • Transition tables created by generated migrations have NOT NULL constraints on to_state, sort_key and foreign key columns (patch by @greysteil)
    • before_transition and after_transition allow an array of to states (patch by @isaacseymour)