socialforge/db/migrate/20140714081030_set_web_titl...

10 lines
225 B
Ruby

# -*coding:utf-8 -*-
class SetWebTitle < ActiveRecord::Migration
def change
FirstPage.all.each do |fp|
fp.web_title = "Trustie - 为大学生技术创新筑巢"
fp.save(:validate => false)
end
end
end