Sha256: e0333ea3a1453078815a85f0268bb11ebf98e45b1fdb53a48c51e107af6c8c45
Contents?: true
Size: 581 Bytes
Versions: 16
Compression:
Stored size: 581 Bytes
Contents
class CreateAvatars < ActiveRecord::Migration def self.up create_table :avatars do |t| t.references :user # Who uploaded the avatar. t.references :entity, :polymorphic => true # User, and later on Lead, Contact, or Company t.integer :image_file_size # Uploaded image file size t.string :image_file_name # Uploaded image full file name t.string :image_content_type # MIME content type t.timestamps end end def self.down drop_table :avatars end end
Version data entries
16 entries across 16 versions & 1 rubygems