aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/migrations/magic/1_currencies_have_symbols.rb
blob: 53b263bf5518304d67f361de87f68f1a11fc7eaa (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