Skip to content

Instantly share code, notes, and snippets.

@Prajjwal
Created June 6, 2016 20:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Prajjwal/0dff3c09607f5e25ba29400975eff470 to your computer and use it in GitHub Desktop.
Save Prajjwal/0dff3c09607f5e25ba29400975eff470 to your computer and use it in GitHub Desktop.
Rails Model Structure
class User < ApplicationRecord
# === [Constants] ==========
# === [Attributes] =========
# === [Extensions] =========
# === [Relationships] ======
# === [Validations] ========
# === [Scopes] =============
# === [Callbacks] ==========
# === [Class] ==============
# === [Instance] ===========
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment