aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/migrations/magic/1_currencies_have_symbols.rb
blob: d8a864b213c63ef5f55c406c463ed7ca08fe2974 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true
# 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