diff options
| author | realtradam <[email protected]> | 2024-04-08 21:58:55 -0400 |
|---|---|---|
| committer | realtradam <[email protected]> | 2024-04-08 21:58:55 -0400 |
| commit | 5d6c31ab4b3b6b663485021c697a41e2a2531b9c (patch) | |
| tree | 47a9ba9933f5c73d617d106fecce6891316d1e5d /app/models | |
| parent | 05294b07c551c708b3bc51e2964ae01fcdfdd25f (diff) | |
| download | gameHolster-5d6c31ab4b3b6b663485021c697a41e2a2531b9c.tar.gz gameHolster-5d6c31ab4b3b6b663485021c697a41e2a2531b9c.zip | |
add blog index
Diffstat (limited to 'app/models')
| -rw-r--r-- | app/models/blog.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/models/blog.rb b/app/models/blog.rb new file mode 100644 index 0000000..5afa227 --- /dev/null +++ b/app/models/blog.rb @@ -0,0 +1,5 @@ +class Blog < ApplicationRecord + validates :name, presence: true + validates :content, presence: true + validates :category, presence: true +end |
