添加owner_type字段
This commit is contained in:
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…
Reference in New Issue