From f906ef024ee39c31148edb49c6511f007735ce5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?U=C4=A3is=20Ozols?= Date: Fri, 23 Nov 2012 15:16:46 +0200 Subject: Squash migrations. This also makes sure tags and taggings tables doesn't exist before trying to create them. --- .../20110803223529_add_primary_key_to_categorizations.rb | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 db/migrate/20110803223529_add_primary_key_to_categorizations.rb (limited to 'db/migrate/20110803223529_add_primary_key_to_categorizations.rb') diff --git a/db/migrate/20110803223529_add_primary_key_to_categorizations.rb b/db/migrate/20110803223529_add_primary_key_to_categorizations.rb deleted file mode 100644 index 5bbfcf3..0000000 --- a/db/migrate/20110803223529_add_primary_key_to_categorizations.rb +++ /dev/null @@ -1,14 +0,0 @@ -class AddPrimaryKeyToCategorizations < ActiveRecord::Migration - def up - unless Refinery::Categorization.column_names.include?("id") - add_column Refinery::Categorization.table_name, :id, :primary_key - end - end - - def down - if Refinery::Categorization.column_names.include?("id") - remove_column Refinery::Categorization.table_name, :id - end - end -end - -- cgit v1.2.3