class CreateWangeditorAssets
Public Class Methods
down()
click to toggle source
# File lib/generators/rails_wangeditor/migration/templates/migration/migration.rb, line 14 def self.down drop_table :wangeditor_assets end
up()
click to toggle source
# File lib/generators/rails_wangeditor/migration/templates/migration/migration.rb, line 2 def self.up create_table :wangeditor_assets do |t| t.string :asset t.integer :file_size t.string :file_type t.integer :owner_id t.string :owner_type t.string :asset_type t.timestamps end end