Commit 6c14ec7a5f66e6f186436661393ff02f49354a6c
1 parent
f14d60bf
Exists in
master
and in
29 other branches
Add acronym and abreation to category
This allow category to show differently and more adequate in some places (i.e, states acronyms in faceted search)
Showing
1 changed file
with
11 additions
and
0 deletions
Show diff stats
db/migrate/20110810123648_add_acronym_and_abbreviation_to_category.rb
0 → 100644
... | ... | @@ -0,0 +1,11 @@ |
1 | +class AddAcronymAndAbbreviationToCategory < ActiveRecord::Migration | |
2 | + def self.up | |
3 | + add_column :categories, :acronym, :string | |
4 | + add_column :categories, :abbreviation, :string | |
5 | + end | |
6 | + | |
7 | + def self.down | |
8 | + remove_column :categories, :abbreviation | |
9 | + remove_column :categories, :acronym | |
10 | + end | |
11 | +end | ... | ... |