Change fields and views

This commit is contained in:
nasia 2017-08-28 15:24:51 +03:00
parent 30e70cc5d6
commit 819d55366c
11 changed files with 73 additions and 65 deletions

View file

@ -1,13 +1,14 @@
class AddSwagsToSponsors < ActiveRecord::Migration
def change
add_column :sponsors, :paid, :boolean, default: false
add_column :sponsors, :amount, :float
add_column :sponsors, :has_swag, :boolean, default: false
add_column :sponsors, :swag_received, :boolean
add_column :sponsors, :address, :string
add_column :sponsors, :vat, :string
add_column :sponsors, :has_banner, :boolean, default: false
add_column :sponsors, :swag, :text
add_column :sponsors, :courier_info, :text
add_column :sponsors, :swag_transportation, :text
add_column :sponsors, :state, :string
end
end