updated changes to provide backwards compatibility with rails 3
updated migrations