迁移文件出错问题

This commit is contained in:
z9hang 2014-07-16 15:32:27 +08:00
parent 2cab9f7895
commit 8d181c4e93
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
class FirstPage < ActiveRecord::Base
attr_accessible :description, :title, :web_title,:page_type
validates_presence_of :web_title, :title, :description,:page_type,:sort_type
attr_accessible :description, :title, :web_title,:page_type,:sort_type
validates_presence_of :web_title, :title, :description,:page_type
validates_length_of :web_title,:title, maximum: 30
validates_length_of :description, maximum: 100
end