Sha256: 65f42f119c01283b4f941251ecee68ce4a36428a3f21ab632e39de42c6c22d10

Contents?: true

Size: 528 Bytes

Versions: 5

Compression:

Stored size: 528 Bytes

Contents

class CreatePhcpressCategoryVersions < ActiveRecord::Migration[7.0]
  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

5 entries across 5 versions & 1 rubygems

Version Path
phcpress-57.0.4 db/migrate/20170517064427_create_phcpress_category_versions.rb
phcpress-57.0.3 db/migrate/20170517064427_create_phcpress_category_versions.rb
phcpress-57.0.2 db/migrate/20170517064427_create_phcpress_category_versions.rb
phcpress-57.0.1 db/migrate/20170517064427_create_phcpress_category_versions.rb
phcpress-57.0.0 db/migrate/20170517064427_create_phcpress_category_versions.rb