Sha256: d31a654bd6a2b4a4620d14af2086682888b3d36eb965ed0c85ac5e97d5016118

Contents?: true

Size: 528 Bytes

Versions: 8

Compression:

Stored size: 528 Bytes

Contents

class CreatePhcpressCategoryVersions < ActiveRecord::Migration[5.2]
  TEXT_BYTES = 1_073_741_823
  def change

    create_table :phcpress_category_versions do |t|
      t.string   :item_type, {:null=>false}
      t.integer  :item_id,   null: false
      t.string   :event,     null: false
      t.string   :whodunnit
      t.text     :object, limit: TEXT_BYTES
      t.datetime :created_at
    end

    add_index :phcpress_category_versions, %i(item_type item_id), :name => 'press_category_versions'

  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
phcpress-56.1.0 db/migrate/20170517064427_create_phcpress_category_versions.rb
phcpress-56.0.0 db/migrate/20170517064427_create_phcpress_category_versions.rb
phcpress-55.0.0 db/migrate/20170517064427_create_phcpress_category_versions.rb
phcpress-54.0.0 db/migrate/20170517064427_create_phcpress_category_versions.rb
phcpress-53.1.0 db/migrate/20170517064427_create_phcpress_category_versions.rb
phcpress-53.0.0 db/migrate/20170517064427_create_phcpress_category_versions.rb
phcpress-52.0.0 db/migrate/20170517064427_create_phcpress_category_versions.rb
phcpress-51.0.0 db/migrate/20170517064427_create_phcpress_category_versions.rb