File: 1_currencies_have_symbols.rb

package info (click to toggle)
rails 2%3A4.1.8-1%2Bdeb8u4
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 22,132 kB
  • ctags: 27,642
  • sloc: ruby: 172,886; sql: 43; yacc: 43; sh: 14; makefile: 12
file content (12 lines) | stat: -rw-r--r-- 272 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
# coding: ISO-8859-15

class CurrenciesHaveSymbols < ActiveRecord::Migration
  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