Class: CreateHeadshotPhotos

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/db/migrate/create_headshot_photos.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



2
3
4
5
6
7
8
9
10
11
12
# File 'lib/db/migrate/create_headshot_photos.rb', line 2

def change
  create_table :headshot_photos do |t|
    t.string :description
    t.string :image_file_name
    t.string :image_content_type
    t.integer :image_file_size
    t.references :capturable, :polymorphic => true
    t.datetime :image_updated_at
    t.timestamps
  end
end