Sha256: 764090dbbcb40b4b2ed145b98771e66819814f66f52ed8181d3f9b6b71010dd2

Contents?: true

Size: 550 Bytes

Versions: 5

Compression:

Stored size: 550 Bytes

Contents

class CreatePhcdevworksCoreCategoryVersions < ActiveRecord::Migration[6.0]
  TEXT_BYTES = 1_073_741_823
  def change

    create_table :phcdevworks_core_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 :phcdevworks_core_category_versions, %i(item_type item_id), :name => 'core_category_versions'

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
phcdevworks_core_modules-1.0.0 db/migrate/20170517064427_create_phcdevworks_core_category_versions.rb
phcdevworks_core_modules-0.4.0 db/migrate/20170517064427_create_phcdevworks_core_category_versions.rb
phcdevworks_core_modules-0.3.0 db/migrate/20170517064427_create_phcdevworks_core_category_versions.rb
phcdevworks_core_modules-0.2.0 db/migrate/20170517064427_create_phcdevworks_core_category_versions.rb
phcdevworks_core_modules-0.1.0 db/migrate/20170517064427_create_phcdevworks_core_category_versions.rb