Changed database migrations to rails 1.8