Sha256: 6596f190a1de6df7a5bb63a4f7c54f79ea6cf56617cc1db12c04e1dcd8a616e5
Contents?: true
Size: 561 Bytes
Versions: 7
Compression:
Stored size: 561 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
7 entries across 7 versions & 2 rubygems