Sha256: 6d58dbb8e0e7915bdb96d46dbc64333c26692d1396bfc6c167793d3bc5577c53

Contents?: true

Size: 537 Bytes

Versions: 5

Compression:

Stored size: 537 Bytes

Contents

# This migration comes from ecm_pictures_engine (originally 1)
class CreateEcmPicturesPictureGalleries < ActiveRecord::Migration
  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.1 spec/dummy/db/migrate/20160322164128_create_ecm_pictures_picture_galleries.ecm_pictures_engine.rb
ecm_news2_backend-1.2.0 spec/dummy/db/migrate/20160322164128_create_ecm_pictures_picture_galleries.ecm_pictures_engine.rb
ecm_news2_backend-1.1.3 spec/dummy/db/migrate/20160322164128_create_ecm_pictures_picture_galleries.ecm_pictures_engine.rb
ecm_news2_backend-1.1.1 spec/dummy/db/migrate/20160322164128_create_ecm_pictures_picture_galleries.ecm_pictures_engine.rb
ecm_news2_backend-1.1.0 spec/dummy/db/migrate/20160322164128_create_ecm_pictures_picture_galleries.ecm_pictures_engine.rb