Sha256: a8fa44486b1406c438203838bea62c57bb0a4842ac164d23b0d567ab603e4048

Contents?: true

Size: 312 Bytes

Versions: 6

Compression:

Stored size: 312 Bytes

Contents

# 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

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
ibm_db-5.5.0 test/migrations/magic/1_currencies_have_symbols.rb
ibm_db-5.4.1 test/migrations/magic/1_currencies_have_symbols.rb
ibm_db-5.4.0 test/migrations/magic/1_currencies_have_symbols.rb
ibm_db-5.3.2 test/migrations/magic/1_currencies_have_symbols.rb
ibm_db-5.3.1 test/migrations/magic/1_currencies_have_symbols.rb
ruby-on-quails-0.1.0 activerecord/test/migrations/magic/1_currencies_have_symbols.rb