Migration not longer needed.

This commit is contained in:
Martin Edenhofer 2013-02-01 00:59:22 +01:00
parent 2fa3b015a8
commit e529ac62ea
2 changed files with 1 additions and 17 deletions

View file

@ -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

View file

@ -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