parent
2cd48a1ca2
commit
40bf109223
@ -0,0 +1,4 @@
|
|||||||
|
class AddQuotesToMessages < ActiveRecord::Migration
|
||||||
|
def change
|
||||||
|
end
|
||||||
|
end
|
@ -0,0 +1,5 @@
|
|||||||
|
class AddOrgSubfieldIdToBoards < ActiveRecord::Migration
|
||||||
|
def change
|
||||||
|
add_column :boards, :org_subfield_id, :integer
|
||||||
|
end
|
||||||
|
end
|
@ -0,0 +1,11 @@
|
|||||||
|
# encoding: utf-8
|
||||||
|
class SetBoardForOrgSubfields < ActiveRecord::Migration
|
||||||
|
def up
|
||||||
|
OrgSubfield.where("field_type='Post'").each do |field|
|
||||||
|
Board.create(:org_subfield_id => field.id, :name => "资源栏目讨论区", :project_id => -1, :description => field.name)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
def down
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in new issue