add console rake task
stop using deprecated activesupport Hash.diff method
automatically insert sti type column if necessary