From e529ac62ea45b5a3f720be8d8fe2c4d7340176bb Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Fri, 1 Feb 2013 00:59:22 +0100 Subject: [PATCH] Migration not longer needed. --- db/migrate/20120101000010_create_ticket.rb | 2 +- db/migrate/20130130005817_overview_update.rb | 16 ---------------- 2 files changed, 1 insertion(+), 17 deletions(-) delete mode 100644 db/migrate/20130130005817_overview_update.rb diff --git a/db/migrate/20120101000010_create_ticket.rb b/db/migrate/20120101000010_create_ticket.rb index ece0bec15..9977b7084 100644 --- a/db/migrate/20120101000010_create_ticket.rb +++ b/db/migrate/20120101000010_create_ticket.rb @@ -167,7 +167,7 @@ class CreateTicket < ActiveRecord::Migration t.references :user, :null => true t.references :role, :null => false t.column :name, :string, :limit => 250, :null => false - t.column :url, :string, :limit => 250, :null => false + t.column :link, :string, :limit => 250, :null => false t.column :prio, :integer, :null => false t.column :condition, :string, :limit => 2500, :null => false t.column :order, :string, :limit => 2500, :null => false diff --git a/db/migrate/20130130005817_overview_update.rb b/db/migrate/20130130005817_overview_update.rb deleted file mode 100644 index 4c765b80b..000000000 --- a/db/migrate/20130130005817_overview_update.rb +++ /dev/null @@ -1,16 +0,0 @@ -class OverviewUpdate < ActiveRecord::Migration - def up - add_column :overviews, :link, :string, :limit => 250, :null => false - add_column :overviews, :prio, :integer, :null => false - Overview.all.each {|overview| - overview.link = overview.meta[:url] - overview.name = overview.meta[:name] - overview.prio = overview.meta[:prio] - overview.save - } - remove_column :overviews, :meta - end - - def down - end -end