I don't have an object yet
allModel.all => fetch all the items from the databasecreateModel.create(:hour => 1, :emotion => "super stoked")
=> create a new model in the databasenewModel.new => build a new model but don't save itfirstModel.first => fetches the first onelastModel.last => fetches the last onefindModel.find(1) => fetches one with the id we give itwhereModel.where(:hour => 1, :emotion => 'happy') => fetch all of models that have the "hour" set to "1"
Ok I have an object
destroyModel.destroy => delete the item from the databaseupdate_attributesModel.update_attributes(:hour => 3) => update the attributes on the model