Commit b92b1e8d authored by Tiago Botelho's avatar Tiago Botelho

Rollback changes made to CreateProjectMirrorData

parent 29257b0e
...@@ -4,17 +4,13 @@ class CreateProjectMirrorData < ActiveRecord::Migration ...@@ -4,17 +4,13 @@ class CreateProjectMirrorData < ActiveRecord::Migration
DOWNTIME = false DOWNTIME = false
def up def up
if table_exists?(:project_mirror_data) return if table_exists?(:project_mirror_data)
add_column :project_mirror_data, :status, :string unless column_exists?(:project_mirror_data, :status)
add_column :project_mirror_data, :jid, :string unless column_exists?(:project_mirror_data, :jid) create_table :project_mirror_data do |t|
add_column :project_mirror_data, :last_error, :text unless column_exists?(:project_mirror_data, :last_error) t.references :project, index: true, foreign_key: { on_delete: :cascade }
else t.string :status
create_table :project_mirror_data do |t| t.string :jid
t.references :project, index: true, foreign_key: { on_delete: :cascade } t.text :last_error
t.string :status
t.string :jid
t.text :last_error
end
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment