添加owner_type字段

dev_repository_hjq
lizanle 11 years ago
parent d1bc2b85d0
commit f59e9a3f7e

@ -0,0 +1,5 @@
class AddOwnerTypeToKindEditorAssets < ActiveRecord::Migration
def change
add_column :kindeditor_assets,:owner_type,:string
end
end

@ -0,0 +1,8 @@
class ChangeOwnerTypeInKindeditorAssets < ActiveRecord::Migration
def up
execute(" ALTER TABLE `kindeditor_assets` MODIFY COLUMN `owner_type` int(11) DEFAULT 0")
end
def down
end
end
Loading…
Cancel
Save