Sha256: 1edba41083d5340073d2086a3f249215c171efc64cc2b895c408a6e9c24ed691
Contents?: true
Size: 373 Bytes
Versions: 46
Compression:
Stored size: 373 Bytes
Contents
class CreateDocuments < ActiveRecord::Migration[5.0] def change create_table :documents do |t| t.string :document t.string :document_type t.integer :documentable_id t.string :documentable_type t.timestamps end add_index(:documents, :document_type) add_index(:documents, [ :documentable_id, :documentable_type ]) end end
Version data entries
46 entries across 46 versions & 1 rubygems