Sha256: 144661308c6b4c37631aa77a015ff5cd2f6856a16687562cb16a4b41f628d17d

Contents?: true

Size: 687 Bytes

Versions: 5

Compression:

Stored size: 687 Bytes

Contents

# This migration comes from ecm_pictures_engine (originally 2)
class CreateEcmPicturesPictures < ActiveRecord::Migration
  def change
    create_table :ecm_pictures_pictures do |t|
      t.string :name
      t.text :description

      # associations
      t.references :picture_gallery

      # acts as list
      t.integer :position

      # acts as markup
      t.string :markup_language

      # friendly id
      t.string :slug

      # paperclip
      # t.attachment :image
      t.string :image_file_name
      t.integer :image_file_size
      t.string :image_content_type
      t.timestamp :image_updated_at
      t.string :image_fingerprint

      t.timestamps
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ecm_news2_backend-1.2.1 spec/dummy/db/migrate/20160322164129_create_ecm_pictures_pictures.ecm_pictures_engine.rb
ecm_news2_backend-1.2.0 spec/dummy/db/migrate/20160322164129_create_ecm_pictures_pictures.ecm_pictures_engine.rb
ecm_news2_backend-1.1.3 spec/dummy/db/migrate/20160322164129_create_ecm_pictures_pictures.ecm_pictures_engine.rb
ecm_news2_backend-1.1.1 spec/dummy/db/migrate/20160322164129_create_ecm_pictures_pictures.ecm_pictures_engine.rb
ecm_news2_backend-1.1.0 spec/dummy/db/migrate/20160322164129_create_ecm_pictures_pictures.ecm_pictures_engine.rb