fix
This commit is contained in:
parent
8e0f961ebd
commit
b572818b2c
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user