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

Version Path
kuppayam-0.2.12.pre.materialize db/migrate/20170000000001_create_documents.rb
kuppayam-0.2.11.pre.materialize db/migrate/20170000000001_create_documents.rb
kuppayam-0.2.10.pre.materialize db/migrate/20170000000001_create_documents.rb
kuppayam-0.2.9.pre.materialize db/migrate/20170000000001_create_documents.rb
kuppayam-0.2.8.pre.materialize db/migrate/20170000000001_create_documents.rb
kuppayam-0.2.7.pre.materialize db/migrate/20170000000001_create_documents.rb
kuppayam-0.2.6.pre.materialize db/migrate/20170000000001_create_documents.rb
kuppayam-0.2.5.pre.materialize db/migrate/20170000000001_create_documents.rb
kuppayam-0.2.4.pre.materialize db/migrate/20170000000001_create_documents.rb
kuppayam-0.2.3.pre.materialize db/migrate/20170000000001_create_documents.rb
kuppayam-0.2.2.pre.materialize db/migrate/20170000000001_create_documents.rb
kuppayam-0.2.1.pre.materialize db/migrate/20170000000001_create_documents.rb
kuppayam-0.2.0.pre.materialize db/migrate/20170000000001_create_documents.rb
kuppayam-0.1.39 db/migrate/20170000000001_create_documents.rb
kuppayam-0.1.38 db/migrate/20170000000001_create_documents.rb
kuppayam-0.1.37 db/migrate/20170000000001_create_documents.rb
kuppayam-0.1.36 db/migrate/20170000000001_create_documents.rb
kuppayam-0.1.35 db/migrate/20170000000001_create_documents.rb
kuppayam-0.1.34 db/migrate/20170000000001_create_documents.rb
kuppayam-0.1.33 db/migrate/20170000000001_create_documents.rb