Skip to content

Commit

Permalink
#358: cleanup build_lists table
Browse files Browse the repository at this point in the history
  • Loading branch information
avokhmin committed Feb 19, 2014
1 parent 4b1e0f2 commit 8ed84cc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Expand Up @@ -8,9 +8,14 @@ def up
add_column :build_lists, :auto_publish_status, :string, default: 'none', null: false
BuildList.where(auto_publish: true).update_all(auto_publish_status: :default)
change_column :build_lists, :auto_publish_status, :string, default: 'default', null: false
remove_column :build_lists, :auto_publish
end

def down
# Make existing build_lists false, but default to true in the future.
add_column :build_lists, :auto_publish, :boolean, default: false
BuildList.where(auto_publish_status: :default).update_all(auto_publish: true)
change_column :build_lists, :auto_publish, :boolean, default: true
remove_column :build_lists, :auto_publish_status
end
end
1 change: 0 additions & 1 deletion db/schema.rb
Expand Up @@ -122,7 +122,6 @@
t.integer "save_to_platform_id"
t.text "include_repos"
t.integer "user_id"
t.boolean "auto_publish", :default => true
t.string "package_version"
t.string "commit_hash"
t.integer "priority", :default => 0, :null => false
Expand Down

0 comments on commit 8ed84cc

Please sign in to comment.