Skip to content

Instantly share code, notes, and snippets.

@de-farias
Created February 11, 2023 16:53
Show Gist options
  • Save de-farias/76f4ca937f70b13cf2b1c060484941c4 to your computer and use it in GitHub Desktop.
Save de-farias/76f4ca937f70b13cf2b1c060484941c4 to your computer and use it in GitHub Desktop.
ActiveRecord files organization proposal
# 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