This commit is contained in:
wate 2022-04-26 05:39:53 +09:00
parent 8e0f961ebd
commit b572818b2c

View File

@ -3,7 +3,9 @@ class RenameGlossaryTermsFromTerms < ActiveRecord::Migration[5.2]
remove_column :terms, :tech_en, :string remove_column :terms, :tech_en, :string
remove_column :terms, :name_cn, :string remove_column :terms, :name_cn, :string
remove_column :terms, :name_fr, :string remove_column :terms, :name_fr, :string
change_column :terms, :created_on, :timestamp, default: -> { 'CURRENT_TIMESTAMP' }
rename_column :terms, :created_on, :created_at rename_column :terms, :created_on, :created_at
change_column :terms, :updated_on, :timestamp, default: -> { 'CURRENT_TIMESTAMP' }
rename_column :terms, :updated_on, :updated_at rename_column :terms, :updated_on, :updated_at
rename_table :terms, :glossary_terms rename_table :terms, :glossary_terms
end end