添加owner_type字段

This commit is contained in:
lizanle 2015-03-26 16:13:19 +08:00
parent d1bc2b85d0
commit f59e9a3f7e
2 changed files with 13 additions and 0 deletions

View File

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

View File

@ -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