add index in migrate file
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
class CreateMenuItems < ActiveRecord::Migration[5.1]
|
||||
def change
|
||||
create_table :menu_items do |t|
|
||||
t.string :item_code, :null => false
|
||||
t.string :item_code, :null => false, :index => true
|
||||
t.string :name, :null => false
|
||||
t.string :alt_name
|
||||
t.string :image_path
|
||||
|
||||
Reference in New Issue
Block a user