From bfc9cdb3a480fd06b2db3b710fffdef83bdb352f Mon Sep 17 00:00:00 2001 From: lizanle <491823689@qq.com> Date: Tue, 17 Mar 2015 10:08:55 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B5=84=E6=BA=90=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../20150316083717_create_kindeditor_assets.rb | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 db/migrate/20150316083717_create_kindeditor_assets.rb diff --git a/db/migrate/20150316083717_create_kindeditor_assets.rb b/db/migrate/20150316083717_create_kindeditor_assets.rb new file mode 100644 index 000000000..19a108b2e --- /dev/null +++ b/db/migrate/20150316083717_create_kindeditor_assets.rb @@ -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 +