parent
78fb8b6254
commit
2f7260cba2
@ -0,0 +1,5 @@
|
||||
class AddTypeToOrgSubfields < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :org_subfields, :field_type, :string
|
||||
end
|
||||
end
|
@ -0,0 +1,10 @@
|
||||
class SetTypeForOrgSubfields < ActiveRecord::Migration
|
||||
def up
|
||||
OrgSubfield.all.each do |field|
|
||||
field.update_attribute(:field_type, "Post")
|
||||
end
|
||||
end
|
||||
|
||||
def down
|
||||
end
|
||||
end
|
Loading…
Reference in new issue