From 01e7c969f8e07ceb23a33d8327641a8920fc3b56 Mon Sep 17 00:00:00 2001 From: Victor Costa Date: Mon, 30 Nov 2015 14:52:18 -0300 Subject: [PATCH] Define an index name to avoid long names --- db/migrate/20150702195735_create_tasks_categories.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/db/migrate/20150702195735_create_tasks_categories.rb b/db/migrate/20150702195735_create_tasks_categories.rb index 1e6ae9c..212a12d 100644 --- a/db/migrate/20150702195735_create_tasks_categories.rb +++ b/db/migrate/20150702195735_create_tasks_categories.rb @@ -1,9 +1,8 @@ class CreateTasksCategories < ActiveRecord::Migration def up create_table :proposals_discussion_plugin_task_categories, id: false do |t| - t.belongs_to :task, index: true - t.belongs_to :category, index: true - + t.belongs_to :task, index: { name: 'proposals_discussion_plugin_tc_task_index' } + t.belongs_to :category, index: { name: 'proposals_discussion_plugin_tc_cat_index' } end end -- libgit2 0.21.2