Sha256: fa11a053eac637481a7e24db94fd293702e9d856f0548a771443494b19d044b7
Contents?: true
Size: 566 Bytes
Versions: 8
Compression:
Stored size: 566 Bytes
Contents
class CreateAvatars < ActiveRecord::Migration[4.2] 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
8 entries across 8 versions & 1 rubygems