mirror of
https://github.com/internetee/registry.git
synced 2025-07-28 21:46:24 +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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue