Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 390
- Log:
Initial import of Canvass, a donations-based poll application.
- Author:
- rool
- Date:
- Mon Mar 21 14:58:04 +0000 2011
- Size:
- 1599 Bytes
1 | ######################################################################## |
2 | # File:: 20090414121243_create_currencies.rb |
3 | # (C):: Hipposoft 2009, 2010, 2011 |
4 | # |
5 | # Purpose:: Create or destroy the 'currencies' table. |
6 | # ---------------------------------------------------------------------- |
7 | # 14-Apr-2009 (ADH): Created. |
8 | # 18-Feb-2011 (ADH): Imported from Artisan. |
9 | ######################################################################## |
10 | |
11 | class CreateCurrencies < ActiveRecord::Migration |
12 | def self.up |
13 | create_table 'currencies' do | t | |
14 | t.string :name, :limit => Currency::MAXLEN_NAME |
15 | t.string :code, :limit => Currency::MAXLEN_CODE |
16 | |
17 | t.string :integer_template, :limit => Currency::MAXLEN_INTEGER_TEMPLATE |
18 | t.string :delimiter, :limit => Currency::MAXLEN_DELIMITER |
19 | t.string :fraction_template, :limit => Currency::MAXLEN_FRACTION_TEMPLATE |
20 | |
21 | t.integer :decimal_precision, :null => false, |
22 | :default => Currency::DEFAULT_DECIMAL_PRECISION |
23 | t.string :rounding_algorithm, :null => false, |
24 | :default => Currency::DEFAULT_ROUNDING_ALGORITHM, |
25 | :limit => Currency::MAXLEN_ROUNDING_ALGORITHM |
26 | |
27 | t.string :symbol, :limit => Currency::MAXLEN_SYMBOL |
28 | t.boolean :show_after_number, :null => false, |
29 | :default => Currency::DEFAULT_SHOW_AFTER_NUMBER |
30 | end |
31 | end |
32 | |
33 | def self.down |
34 | drop_table 'currencies' |
35 | end |
36 | end |