I created a rails application using scaffolding and migrated the database.
and I committed a local repository by git commit -m "First commit"
then I unrolled the database using rake db:rollback
and the application stopped working.
I tried to undo using git checkout .
but the application wasn't still working till I migrated the database again using rake db:migrate
.
Why is this happening?