Sha256: b232c4141b3c125566c880e404e658c845b9d11cdab08d042244a57cdf6107f0

Contents?: true

Size: 542 Bytes

Versions: 9

Compression:

Stored size: 542 Bytes

Contents

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

    create_table :phcdevworks_scripts_author_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_scripts_author_versions, %i(item_type item_id), :name => 'scriptcdnpro_author_versions'

  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
phcdevworks_scripts-3.0.1 db/migrate/20170517064208_create_phcdevworks_scripts_author_versions.rb
phcdevworks_scripts-3.0.0 db/migrate/20170517064208_create_phcdevworks_scripts_author_versions.rb
phcdevworks_scripts-2.3.1 db/migrate/20170517064208_create_phcdevworks_scripts_author_versions.rb
phcdevworks_scripts-2.3.0 db/migrate/20170517064208_create_phcdevworks_scripts_author_versions.rb
phcdevworks_scripts-2.2.0 db/migrate/20170517064208_create_phcdevworks_scripts_author_versions.rb
phcdevworks_scripts-2.1.1 db/migrate/20170517064208_create_phcdevworks_scripts_author_versions.rb
phcdevworks_scripts-2.1.0 db/migrate/20170517064208_create_phcdevworks_scripts_author_versions.rb
phcdevworks_scripts-1.0.0 db/migrate/20170517064208_create_phcdevworks_scripts_author_versions.rb
phcdevworks_scripts-0.1.0 db/migrate/20170517064208_create_phcdevworks_scripts_author_versions.rb