Finish migrate to rails4
Migrate to rails 4