Sha256: c2963ada5463ca303259ecee38ab614a460d72e27c4d83c92ad469c6f1779888

Contents?: true

Size: 277 Bytes

Versions: 49

Compression:

Stored size: 277 Bytes

Contents

class CreateAttachments < ActiveRecord::Migration
  def change
    create_table :attachments do |t|
      t.string :filename
      t.string :content_type
      t.integer :size
      t.string :attachable_type
      t.integer :attachable_id

      t.timestamps
    end
  end
end

Version data entries

49 entries across 49 versions & 1 rubygems

Version Path
tawork-0.0.50 db/migrate/20140112004346_create_attachments.rb
tawork-0.0.49 db/migrate/20140112004346_create_attachments.rb
tawork-0.0.48 db/migrate/20140112004346_create_attachments.rb
tawork-0.0.47 db/migrate/20140112004346_create_attachments.rb
tawork-0.0.46 db/migrate/20140112004346_create_attachments.rb
tawork-0.0.45 db/migrate/20140112004346_create_attachments.rb
tawork-0.0.44 db/migrate/20140112004346_create_attachments.rb
tawork-0.0.43 db/migrate/20140112004346_create_attachments.rb
tawork-0.0.42 db/migrate/20140112004346_create_attachments.rb
tawork-0.0.41 db/migrate/20140112004346_create_attachments.rb
tawork-0.0.40 db/migrate/20140112004346_create_attachments.rb
tawork-0.0.39 db/migrate/20140112004346_create_attachments.rb
tawork-0.0.38 db/migrate/20140112004346_create_attachments.rb
tawork-0.0.37 db/migrate/20140112004346_create_attachments.rb
tawork-0.0.36 db/migrate/20140112004346_create_attachments.rb
tawork-0.0.35 db/migrate/20140112004346_create_attachments.rb
tawork-0.0.34 db/migrate/20140112004346_create_attachments.rb
tawork-0.0.33 db/migrate/20140112004346_create_attachments.rb
tawork-0.0.31 db/migrate/20140112004346_create_attachments.rb
tawork-0.0.30 db/migrate/20140112004346_create_attachments.rb