Created
February 11, 2023 16:53
-
-
Save de-farias/76f4ca937f70b13cf2b1c060484941c4 to your computer and use it in GitHub Desktop.
ActiveRecord files organization proposal
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Proposal of a simple structure, for the models in a Rails app | |
# | |
# Shamelessly copied from https://zmwolski.com/ruby/2016/06/01/organizing-ruby-on-rails-models.html | |
# | |
class KlassOrganization < ApplicationRecord | |
# == Constants =============================================================== | |
# == Attributes ============================================================== | |
# == Extensions ============================================================== | |
# == Relationships =========================================================== | |
# == Validations ============================================================= | |
# == Scopes ================================================================== | |
# == Callbacks =============================================================== | |
# == Class Methods =========================================================== | |
# == Instance Methods ======================================================== | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment