cirandas.net

ref: master

db/migrate/20110913200746_create_reported_image.rb


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
class CreateReportedImage < ActiveRecord::Migration
  def self.up
    create_table :reported_images do |t|
      t.integer :size
      t.string  :content_type
      t.string  :filename
      t.integer :height
      t.integer :width
      t.references :abuse_report
    end
  end

  def self.down
    drop_table :reported_images
  end
end