Sha256: 4bdb2e47e53775370ed45b8ad609be7ac780809c6cf76d81e594181b252f2230

Contents?: true

Size: 849 Bytes

Versions: 6

Compression:

Stored size: 849 Bytes

Contents

# This migration comes from ecm_downloads_engine (originally 2)
class CreateEcmDownloadsDownloads < ActiveRecord::Migration
  def change
    create_table :ecm_downloads_downloads do |t|
      t.string :name
      t.text :description
      t.timestamp :published_at

      # references
      t.references :ecm_downloads_download_category

      # acts as list
      t.integer :position

      # friendly id
      t.string :slug

      # paperclip
      # t.attachment :asset
      t.string :asset_file_name
      t.integer :asset_file_size
      t.string :asset_content_type
      t.timestamp :asset_updated_at
      t.string :asset_fingerprint

      t.timestamps
    end
    add_index :ecm_downloads_downloads,
              :ecm_downloads_download_category_id,
              name: 'index_ecm_downloads_downloads_on_download_category_id'
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ecm_downloads2_backend-2.0.0 spec/dummy/db/migrate/20151130141606_create_ecm_downloads_downloads.ecm_downloads_engine.rb
ecm_downloads2_backend-1.1.1 spec/dummy/db/migrate/20151130141606_create_ecm_downloads_downloads.ecm_downloads_engine.rb
ecm_downloads2_backend-1.1.0 spec/dummy/db/migrate/20151130141606_create_ecm_downloads_downloads.ecm_downloads_engine.rb
ecm_downloads2_backend-1.0.3 spec/dummy/db/migrate/20151130141606_create_ecm_downloads_downloads.ecm_downloads_engine.rb
ecm_downloads2_backend-1.0.2 spec/dummy/db/migrate/20151130141606_create_ecm_downloads_downloads.ecm_downloads_engine.rb
ecm_downloads2_backend-1.0.1 spec/dummy/db/migrate/20151130141606_create_ecm_downloads_downloads.ecm_downloads_engine.rb