state_machine
https://github.com/pluginaweek/state_machine
Ruby
Adds support for creating state machines for attributes on any Ruby class
RegisterDateTimeWithTimeZone#initialize_type_map
Run original `initialize_type_map` and then register `timestamp` as a `MysqlDateTimeWithTimeZone`. When schema dumping, `timestamp` columns will be output as `t.datetime_with_timezone`.
Edit
git clone [email protected]:pluginaweek/state_machine.git
cd state_machine
open
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-RegisterDateTimeWithTimeZone-initialize_type_map-for-pr
# Commit to gitgit add git commit -m "better docs for RegisterDateTimeWithTimeZone#initialize_type_map"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-RegisterDateTimeWithTimeZone-initialize_type_map-for-pr
hub pull-request
# Celebrate!