Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
New way to create models (Rails 5 way):
# app/models/application_record.rb
class ApplicationRecord < ActiveRecord::Base
self.abstract_class = true
# app/models/user.rb
class User < ApplicationRecord
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.