Skip to content

Instantly share code, notes, and snippets.

Embed
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
end
# app/models/user.rb
class User < ApplicationRecord
end
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.