aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/migrations/magic/1_currencies_have_symbols.rb
blob: d4b0e6cd954bfe108f751de6e352b63283a873bc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
# coding: ISO-8859-15

class CurrenciesHaveSymbols < ActiveRecord::Migration::Current
  def self.up
    # We use € for default currency symbol
    add_column "currencies", "symbol", :string, default: "€"
  end

  def self.down
    remove_column "currencies", "symbol"
  end
end