Skip to content

Instantly share code, notes, and snippets.

@gusrub gusrub/mvc_model.rb
Created Mar 4, 2018

Embed
What would you like to do?
MVC model
class User < ApplicationRecord
validates :first_name, presence: true
validates :last_name, presence: true
validates :email, presence: true
validates :token, presence: true
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.