From 6c14ec7a5f66e6f186436661393ff02f49354a6c Mon Sep 17 00:00:00 2001 From: Braulio Bhavamitra Date: Mon, 29 Aug 2011 11:37:10 -0300 Subject: [PATCH] Add acronym and abreation to category --- db/migrate/20110810123648_add_acronym_and_abbreviation_to_category.rb | 11 +++++++++++ 1 file changed, 11 insertions(+), 0 deletions(-) create mode 100644 db/migrate/20110810123648_add_acronym_and_abbreviation_to_category.rb diff --git a/db/migrate/20110810123648_add_acronym_and_abbreviation_to_category.rb b/db/migrate/20110810123648_add_acronym_and_abbreviation_to_category.rb new file mode 100644 index 0000000..0264834 --- /dev/null +++ b/db/migrate/20110810123648_add_acronym_and_abbreviation_to_category.rb @@ -0,0 +1,11 @@ +class AddAcronymAndAbbreviationToCategory < ActiveRecord::Migration + def self.up + add_column :categories, :acronym, :string + add_column :categories, :abbreviation, :string + end + + def self.down + remove_column :categories, :abbreviation + remove_column :categories, :acronym + end +end -- libgit2 0.21.2