Sha256: ff621ab2967c57f13d4f7d44085f352b7a0fb09fc830fecae83d853d0718269f
Contents?: true
Size: 441 Bytes
Versions: 16
Compression:
Stored size: 441 Bytes
Contents
class CreateTiJoinTableCategoriesDocs < ActiveRecord::Migration[5.0] def change create_table :ti_categories_docs, :id => false do |t| t.integer :category_id, :null => false t.integer :doc_id, :null => false end add_index :ti_categories_docs, [:category_id, :doc_id], :unique => true, :name => 'ti_index1' add_index :ti_categories_docs, [:doc_id, :category_id], :unique => true, :name => 'ti_index2' end end
Version data entries
16 entries across 16 versions & 1 rubygems