Sha256: aa0a401445738dbcd0364e7af523dafc7e000fec74a23899e5b80efe3fc69ac0

Contents?: true

Size: 363 Bytes

Versions: 5

Compression:

Stored size: 363 Bytes

Contents

class CreateChaskiqAttachments < ActiveRecord::Migration
  def change
    create_table :chaskiq_attachments do |t|
      t.string :image
      t.string :content_type
      t.integer :size
      t.string :name
      t.references :campaign, index: true

      t.timestamps null: false
    end
    #add_foreign_key :chaskiq_attachments, :chaskiq_campaigns
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
chaskiq-0.0.6 db/migrate/20150318023136_create_chaskiq_attachments.rb
chaskiq-0.0.5 db/migrate/20150318023136_create_chaskiq_attachments.rb
chaskiq-0.0.4 db/migrate/20150318023136_create_chaskiq_attachments.rb
chaskiq-0.0.3 db/migrate/20150318023136_create_chaskiq_attachments.rb
chaskiq-0.0.2 db/migrate/20150318023136_create_chaskiq_attachments.rb