Git revert commit_id -m 1 this command willl revert last commit
Git revert commit_id -m 2 this command will revert second commit with same state.
Git revert commit_id -m 1 this command willl revert last commit
Git revert commit_id -m 2 this command will revert second commit with same state.
EmailTemplate.where("locale = 'de'").each do |et|
body = et.body
File.open("templates/#{et.slug}.html", 'w+') {|f| f.write(body) }
end
~$ sudo mysql
mysql> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root';
mysql> exit
$ mysql -u root -p
$ Enter Password: root
Lead.includes(:contacts).where("contacts.primary" =>true)has_many :notes
has_many :important_notes, -> { where(important: true) }, class_name: "Note"
end
Person.preload(:important_notes)4. Person.eager_load(:notes)Git revert commit_id -m 1 this command willl revert last commit Git revert commit_id -m 2 this command will revert second commit with same...