Skip to content

Instantly share code, notes, and snippets.

@NaiyaShah-BTC
Created April 26, 2019 12:47
Show Gist options
  • Save NaiyaShah-BTC/9c77e929ea7d04b6881d84f8771ecf74 to your computer and use it in GitHub Desktop.
Save NaiyaShah-BTC/9c77e929ea7d04b6881d84f8771ecf74 to your computer and use it in GitHub Desktop.
class Post < ApplicationRecord
validates :title, presence: true
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment