class CreateResources < ActiveRecord::Migration def self.up create_table :resources do |t| t.integer :parent_id, :size, :width, :height t.string :content_type, :filename, :thumbnail t.timestamps end end def self.down drop_table :resources end end