Commit 19ec4b1a by nnnghia98

edit migration file

parent fa48d1c3
...@@ -2,4 +2,5 @@ class AddCompanyCodeToCompany < ActiveRecord::Migration[6.0] ...@@ -2,4 +2,5 @@ class AddCompanyCodeToCompany < ActiveRecord::Migration[6.0]
def change def change
add_column :companies, :company_code, :string, unique: true add_column :companies, :company_code, :string, unique: true
end end
add_index :companies, :company_code, unique: true
end end
class AddIndexToCompanyCode < ActiveRecord::Migration[6.0]
def change
add_index :companies, :company_code, unique: true
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment