From 24c90b37d51be3e35573c86fcbed9eb465326664 Mon Sep 17 00:00:00 2001 From: Braulio Bhavamitra Date: Wed, 3 Jul 2013 10:12:45 -0300 Subject: [PATCH] Add archived field to products --- db/migrate/20130703124306_add_archived_field_to_products.rb | 9 +++++++++ 1 file changed, 9 insertions(+), 0 deletions(-) create mode 100644 db/migrate/20130703124306_add_archived_field_to_products.rb diff --git a/db/migrate/20130703124306_add_archived_field_to_products.rb b/db/migrate/20130703124306_add_archived_field_to_products.rb new file mode 100644 index 0000000..3332437 --- /dev/null +++ b/db/migrate/20130703124306_add_archived_field_to_products.rb @@ -0,0 +1,9 @@ +class AddArchivedFieldToProducts < ActiveRecord::Migration + def self.up + add_column :products, :archived, :boolean, :default => false + end + + def self.down + remove_column :products, :archived + end +end -- libgit2 0.21.2