db/migrate/20090302161124_create_assets.rb
class CreateAssets < ActiveRecord::Migration
def self.up
create_table :assets do |t|
t.belongs_to :account
t.string :attachment_file_name
t.string :attachment_content_type
t.integer :attachment_file_size
t.timestamps
end
end
def self.down
drop_table :assets
end
end