#114: removed unnecessary code, added migration
This commit is contained in:
parent
a26aac8463
commit
9ff5f13530
|
@ -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?
|
||||
|
|
|
@ -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
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue