Skip to content

Commit

Permalink
ページ作成機能:model追加
Browse files Browse the repository at this point in the history
  • Loading branch information
appirits-ymatsumoto committed May 20, 2015
1 parent b86805d commit e43b1c6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions core/app/models/comable/page.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module Comable
class Page < ActiveRecord::Base
validates :title, length: { maximum: 255 }, presence: true
validates :page_title, length: { maximum: 255 }
validates :meta_description, length: { maximum: 255 }
validates :meta_keywords, length: { maximum: 255 }
validates :slug, length: { maximum: 255 }, presence: true
end
end

0 comments on commit e43b1c6

Please sign in to comment.