Migration not longer needed.
This commit is contained in:
parent
2fa3b015a8
commit
e529ac62ea
2 changed files with 1 additions and 17 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
Loading…
Reference in a new issue