Swags stored correctly

This commit is contained in:
nasia 2017-08-26 20:41:36 +03:00
parent 2042d0eb7a
commit 4381f687b6
7 changed files with 18 additions and 28 deletions

View file

@ -6,6 +6,6 @@ class AddSwagsToSponsors < ActiveRecord::Migration
add_column :sponsors, :address, :string
add_column :sponsors, :vat, :string
add_column :sponsors, :has_banner, :boolean, default: false
add_column :sponsors, :swag_hash, :text
add_column :sponsors, :swags, :text
end
end

View file

@ -469,17 +469,17 @@ ActiveRecord::Schema.define(version: 20170822173332) do
t.datetime "updated_at"
t.string "picture"
t.boolean "payed", default: false
t.boolean "swags", default: false
t.boolean "swags_received"
t.string "company_address"
t.string "vat_registration"
t.text "swag_hash"
t.boolean "paid", default: false
t.boolean "has_swag", default: false
t.boolean "swag_received"
t.string "address"
t.string "vat"
t.boolean "has_banner", default: false
t.text "swag_hash"
t.text "swags"
end
create_table "sponsorship_levels", force: :cascade do |t|