Epoch Time Conversion in Rails
To convert Epoch into a Time Object:
Time.at(1280510409) #=> 2010-07-30 12:20:09 -0500
To convert Epoch into a Time Object:
Time.at(1280510409) #=> 2010-07-30 12:20:09 -0500
To add your Heroku remote as a remote in your current repository, use the following command:
git remote add your_app_name git@heroku.com:your_app_name.git
You can find your Heroku App Name and the Git Repo URL from the Heroku App General Info page
First turn on Remote Login on your new Mac:
Apple -> System Preferences -> Sharing -> Remote Login
Than via SSH:
git clone ssh://username@ip.of.your.mac/Users/<path_to_your_git_repo>
The delete methods bypass the various Active Record callback and validation functions, while the destroy methods ensure that they are all invoked. In general, it is better to use the destroy methods if you want to ensure that your database is consistent according to the business rules defined in your model classes.