add index in migrate file
This commit is contained in:
@@ -2,7 +2,7 @@ class CreatePrintSettings < ActiveRecord::Migration[5.1]
|
||||
def change
|
||||
create_table :print_settings do |t|
|
||||
t.string :name, :null => false
|
||||
t.string :unique_code, :null => false
|
||||
t.string :unique_code, :null => false, :index => true
|
||||
t.string :template
|
||||
t.string :font, :default => ""
|
||||
t.integer :header_font_size, :null => false, :default => 10
|
||||
|
||||
Reference in New Issue
Block a user