Sha256: 9cda2f3b0239b0aaaa2fd6c6d73a01d0eed2e88f9a4a3c7690bab002a342b29e

Contents?: true

Size: 542 Bytes

Versions: 5

Compression:

Stored size: 542 Bytes

Contents

# This migration comes from ecm_pictures_engine (originally 1)
class CreateEcmPicturesPictureGalleries < ActiveRecord::Migration[4.2]
  def change
    create_table :ecm_pictures_picture_galleries do |t|
      t.string :name
      t.text :description
      t.boolean :link_images

      # associations
      t.integer :pictures_count, default: 0, null: false

      # acts as list
      t.integer :position

      # acts as markup
      t.string :markup_language

      # friendly id
      t.string :slug

      t.timestamps
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ecm_news2_backend-1.2.6 spec/dummy/db/migrate/20160322164128_create_ecm_pictures_picture_galleries.ecm_pictures_engine.rb
ecm_news2_backend-1.2.5 spec/dummy/db/migrate/20160322164128_create_ecm_pictures_picture_galleries.ecm_pictures_engine.rb
ecm_news2_backend-1.2.4 spec/dummy/db/migrate/20160322164128_create_ecm_pictures_picture_galleries.ecm_pictures_engine.rb
ecm_news2_backend-1.2.3 spec/dummy/db/migrate/20160322164128_create_ecm_pictures_picture_galleries.ecm_pictures_engine.rb
ecm_news2_backend-1.2.2 spec/dummy/db/migrate/20160322164128_create_ecm_pictures_picture_galleries.ecm_pictures_engine.rb