Commit graph

7 commits

Author SHA1 Message Date
Marcel Amirault
5abfc57ec3 Fix spacing of code blocks
Code blocks should not be spaced 4 times, as this will
prevent the code from being colored. They should
also be spaced the same as the lists they are a part
of, to make reading easier.
2019-07-09 07:16:17 +00:00
Nick Thomas
98a5976b78
Document ApplicationRecord / pluck_primary_key
We also enable the rubocop that makes it mandatory
2019-03-29 20:54:06 +00:00
Bob Van Landuyt
ccd8a9b282 Adds helper for find_or_create_by in transaction
This allows us to call `find_or_create_by` on all models and scopes.
2019-02-05 14:44:41 +01:00
Yorick Peterse
40ad7d5d7a
Fix ActiveRecord::Migration deprecations
Extending from ActiveRecord::Migration is deprecated, but was still used
in a bunch of places.
2018-12-12 16:38:40 +01:00
Andreas Brandl
4dac4bfc70 Document pattern for .find_or_create and similar methods. 2018-07-17 10:52:19 +02:00
Yorick Peterse
862da3cfed
Add more database development related docs 2017-08-16 16:39:33 +02:00
Yorick Peterse
059df2256e Added basic SQL guidelines
[ci skip]
2016-03-08 11:28:50 +01:00