mirror of
https://github.com/internetee/registry.git
synced 2025-07-30 06:26:15 +02:00
add new column
This commit is contained in:
parent
77249629bb
commit
d8c0ba2432
7 changed files with 16 additions and 3 deletions
|
@ -24,7 +24,7 @@ module Admin
|
|||
end
|
||||
|
||||
def create
|
||||
auction = Auction.new(domain: params[:domain], status: Auction.statuses[:started])
|
||||
auction = Auction.new(domain: params[:domain], status: Auction.statuses[:started], platform: :english)
|
||||
|
||||
if auction.save
|
||||
remove_from_reserved(auction)
|
||||
|
@ -41,7 +41,7 @@ module Admin
|
|||
|
||||
table.each do |row|
|
||||
record = row.to_h
|
||||
auction = Auction.new(domain: record['name'], status: Auction.statuses[:started])
|
||||
auction = Auction.new(domain: record['name'], status: Auction.statuses[:started], platform: :english)
|
||||
remove_from_reserved(auction) if auction.save!
|
||||
end
|
||||
|
||||
|
|
|
@ -58,7 +58,7 @@ module Admin
|
|||
reserved_domains = ReservedDomain.where(id: reserved_domains_ids)
|
||||
|
||||
reserved_domains.each do |domain|
|
||||
Auction.create!(domain: domain.name, status: Auction.statuses[:started])
|
||||
Auction.create!(domain: domain.name, status: Auction.statuses[:started], platform: :english)
|
||||
domain.destroy!
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue