aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/migrations/magic/1_currencies_have_symbols.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/migrations/magic/1_currencies_have_symbols.rb')
-rw-r--r--activerecord/test/migrations/magic/1_currencies_have_symbols.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/activerecord/test/migrations/magic/1_currencies_have_symbols.rb b/activerecord/test/migrations/magic/1_currencies_have_symbols.rb
new file mode 100644
index 0000000000..2ba2875751
--- /dev/null
+++ b/activerecord/test/migrations/magic/1_currencies_have_symbols.rb
@@ -0,0 +1,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