And next time, take note of the comment in database.yml:
# Warning: The database defined as 'test' will be erased and
# re-generated from your development database when you run 'rake'.
# Do not set this db to the same as development or production.
Did someone set the db to the same as development and production?
And did someone develop for a month without once writing a unit test?
And is someone running a live site without a backup policy?
yup! I just started using rails about a month ago so my knowledge in
some areas is pretty limited.
i guess i need to find a way to sync the test and production
databases...thats the reason i was using production and development as
the same database...and test unfortunately. i did however miss the the
comment in the database.yml that running rake will erase the test
database. i just wanted to get the syntax so i could roll back my last
database migration. that's the last time i do that!
i started looking over unit tests but they looked pretty complicated on
my first pass during my first week of learning rails.
i did have nightly backups running...but apparently i forgot to select
the schema that i ended up losing.