class CreateXmFroalaAssets

Public Class Methods

down() click to toggle source
# File lib/generators/xmt_froala/migration/templates/migration/migration.rb, line 14
def self.down
  drop_table :xmt_froala_assets
end
up() click to toggle source
# File lib/generators/xmt_froala/migration/templates/migration/migration.rb, line 2
def self.up
  create_table :xmt_froala_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 # list by xmt_froala: image, file, media, flash
    t.timestamps
  end
end