Continuing with the previous recipe, we will see how to write
ActiveRecord specifications here.
Locationclass that we've already developed:
$ rails g model location latitude:decimal longitude:decimal
g is the shortened form of generate.
$ rake db:create:all && rake db:migrate && rake db:test:clone
&&between commands will run each command in succession, provided that the previous command does not fail. You can alternatively enter ...