Sha256: 37828708140763527c5d0d58fd0fa5ab896cc9a7f028f64be9bf08048af73b39

Contents?: true

Size: 790 Bytes

Versions: 3

Compression:

Stored size: 790 Bytes

Contents

class CreateEcmDownloadsDownloads < ActiveRecord::Migration[4.2]
  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

3 entries across 3 versions & 1 rubygems

Version Path
ecm_downloads2-5.0.4 db/migrate/002_create_ecm_downloads_downloads.rb
ecm_downloads2-5.0.2 db/migrate/002_create_ecm_downloads_downloads.rb
ecm_downloads2-5.0.1 db/migrate/002_create_ecm_downloads_downloads.rb