Sha256: 4d4d7f5e8c2d9ad15f4bc25467aafbceb95363ae431e3fbb6497487da5d0c3be

Contents?: true

Size: 281 Bytes

Versions: 8

Compression:

Stored size: 281 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

8 entries across 8 versions & 1 rubygems

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