资源表

This commit is contained in:
lizanle 2015-03-17 10:08:55 +08:00
parent 86020804c9
commit bfc9cdb3a4
1 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,17 @@
class CreateKindeditorAssets < ActiveRecord::Migration
def self.up
create_table :kindeditor_assets do |t|
t.string :asset
t.integer :file_size
t.string :file_type
t.integer :owner_id
t.string :asset_type # list by kindeditor: image, file, media, flash
t.timestamps
end
end
def self.down
drop_table :kindeditor_assets
end
end