Sha256: 87560438a9eb514c5463a0c85c9a69cd9c0113762bed929ae862f55eb49475d1

Contents?: true

Size: 548 Bytes

Versions: 1

Compression:

Stored size: 548 Bytes

Contents

class CreatePwbWebsitePhotos < ActiveRecord::Migration[5.1]
  def change
    create_table :pwb_website_photos do |t|
      t.string :photo_key
      t.string :image
      t.string :description
      t.string :folder, default: "weebrix"
      t.integer :file_size
      # t.json :process_options, default: {} 
      # t.string :height
      # t.string :width
      # might need some other details if
      # I enable image watermarking
      # t.integer :sort_order
      t.timestamps
    end
    add_index :pwb_website_photos, :photo_key
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pwb-1.4.0 db/migrate/20180507144720_create_pwb_website_photos.rb