foodsoft/db/migrate/023_new_wording.rb

24 lines
763 B
Ruby
Raw Permalink Normal View History

class NewWording < ActiveRecord::Migration[4.2]
2009-01-06 11:49:19 +01:00
def self.up
rename_column :articles, :clear_price, :net_price
rename_column :articles, :refund, :deposit
2009-01-06 11:49:19 +01:00
rename_column :order_article_results, :clear_price, :net_price
rename_column :order_article_results, :refund, :deposit
2009-01-06 11:49:19 +01:00
rename_column :orders, :refund, :deposit
rename_column :orders, :refund_credit, :deposit_credit
end
def self.down
rename_column :articles, :net_price, :clear_price
rename_column :articles, :deposit, :refund
2009-01-06 11:49:19 +01:00
rename_column :order_article_results, :net_price, :clear_price
rename_column :order_article_results, :deposit, :refund
2009-01-06 11:49:19 +01:00
rename_column :orders, :deposit, :refund
rename_column :orders, :deposit_credit, :refund_credit
end
end