diff --git a/app/models/build_list.rb b/app/models/build_list.rb index aa6d78250..4ab8c7825 100644 --- a/app/models/build_list.rb +++ b/app/models/build_list.rb @@ -422,14 +422,6 @@ class BuildList < ActiveRecord::Base path << "#{bl.id}/#{bl.arch.name}/#{bl.save_to_repository.name}/release" include_repos_hash["container_#{bl.id}"] = path end - # if save_to_platform.personal? && use_save_to_repository - # include_repos_hash["#{save_to_platform.name}_release"] = save_to_platform. - # public_downloads_url( - # build_for_platform.name, - # arch.name, - # save_to_repository.name - # ) + 'release' - # end git_project_address = project.git_project_address user # git_project_address.gsub!(/^http:\/\/(0\.0\.0\.0|localhost)\:[\d]+/, 'https://abf.rosalinux.ru') unless Rails.env.production? diff --git a/db/migrate/20130527181351_drop_use_save_to_repository_from_build_lists.rb b/db/migrate/20130527181351_drop_use_save_to_repository_from_build_lists.rb new file mode 100644 index 000000000..8207562ad --- /dev/null +++ b/db/migrate/20130527181351_drop_use_save_to_repository_from_build_lists.rb @@ -0,0 +1,9 @@ +class DropUseSaveToRepositoryFromBuildLists < ActiveRecord::Migration + def up + remove_column :build_lists, :use_save_to_repository + end + + def down + add_column :build_lists, :use_save_to_repository, :boolean, :default => true + end +end diff --git a/db/schema.rb b/db/schema.rb index 7e58a8967..ed3d2c4ea 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,7 @@ # # It's strongly recommended to check this file into your version control system. -ActiveRecord::Schema.define(:version => 20130417162427) do +ActiveRecord::Schema.define(:version => 20130527181351) do create_table "activity_feeds", :force => true do |t| t.integer "user_id", :null => false @@ -133,7 +133,6 @@ ActiveRecord::Schema.define(:version => 20130417162427) do t.boolean "new_core", :default => true t.string "last_published_commit_hash" t.integer "container_status" - t.boolean "use_save_to_repository", :default => true t.boolean "auto_create_container", :default => false t.text "extra_repositories" t.text "extra_build_lists"