Class: CreateKindeditorAssets
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateKindeditorAssets
- Defined in:
- lib/generators/rails_kindeditor/migration/templates/migration/migration.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
13 14 15 |
# File 'lib/generators/rails_kindeditor/migration/templates/migration/migration.rb', line 13 def self.down drop_table :kindeditor_assets end |
.up ⇒ Object
2 3 4 5 6 7 8 9 10 11 |
# File 'lib/generators/rails_kindeditor/migration/templates/migration/migration.rb', line 2 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. end end |