Sha256: 2cb64b4f137325de37f2b22e495f294ab1ba0cec881d4386a25d49cfc5f6979c

Contents?: true

Size: 293 Bytes

Versions: 6

Compression:

Stored size: 293 Bytes

Contents

# 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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ibm_db-5.2.0-x86-mingw32 test/migrations/magic/1_currencies_have_symbols.rb
ibm_db-5.1.0-x86-mingw32 test/migrations/magic/1_currencies_have_symbols.rb
ibm_db-5.0.5-x86-mingw32 test/migrations/magic/1_currencies_have_symbols.rb
ibm_db-5.0.4-x86-mingw32 test/migrations/magic/1_currencies_have_symbols.rb
ibm_db-5.0.3-x86-mingw32 test/migrations/magic/1_currencies_have_symbols.rb
ibm_db-5.0.2-x86-mingw32 test/migrations/magic/1_currencies_have_symbols.rb