redmine_glossary/db/migrate/003_terms_add_columns.rb

15 lines
377 B
Ruby
Raw Normal View History

class TermsAddColumns < ActiveRecord::Migration[4.2]
def self.up
add_column :terms, :tech_en, :string, :default => ''
add_column :terms, :name_cn, :string, :default => ''
add_column :terms, :name_fr, :string, :default => ''
end
def self.down
remove_column :terms, :tech_en
remove_column :terms, :name_cn
remove_column :terms, :name_fr
end
end