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

View file

@ -48,11 +48,11 @@ ActiveRecord::Schema.define(version: 20170822173332) do
t.text "reasoning"
t.string "state"
t.string "logo_link"
t.string "website_url"
t.text "submitter_relationship"
t.integer "conference_id"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.string "website_url"
t.text "submitter_relationship"
end
create_table "campaigns", force: :cascade do |t|
@ -127,8 +127,8 @@ ActiveRecord::Schema.define(version: 20170822173332) do
t.integer "end_hour", default: 20
t.integer "organization_id"
t.integer "ticket_layout", default: 0
t.integer "booth_limit", default: 0
t.string "custom_domain"
t.integer "booth_limit", default: 0
end
add_index "conferences", ["organization_id"], name: "index_conferences_on_organization_id"
@ -207,6 +207,9 @@ ActiveRecord::Schema.define(version: 20170822173332) do
t.string "cfp_dates_updated_subject"
t.text "program_schedule_public_body"
t.text "cfp_dates_updated_body"
t.text "booths_acceptance_template"
t.text "booths_rejection_template"
t.string "booths_accetance_subject"
t.boolean "send_on_booths_acceptance", default: false
t.string "booths_acceptance_subject"
t.text "booths_acceptance_body"
@ -325,11 +328,8 @@ ActiveRecord::Schema.define(version: 20170822173332) do
t.integer "ticket_purchase_id", null: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.string "token"
end
add_index "physical_tickets", ["token"], name: "index_physical_tickets_on_token", unique: true
create_table "programs", force: :cascade do |t|
t.integer "conference_id"
t.integer "rating", default: 0
@ -469,13 +469,14 @@ ActiveRecord::Schema.define(version: 20170822173332) do
t.datetime "updated_at"
t.string "picture"
t.boolean "paid", default: false
t.float "amount"
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"
t.text "courier_info"
t.text "swag_transportation"
t.string "state"
end
@ -586,6 +587,7 @@ ActiveRecord::Schema.define(version: 20170822173332) do
t.boolean "is_admin", default: false
t.string "username"
t.boolean "is_disabled", default: false
t.string "token"
end
add_index "users", ["confirmation_token"], name: "index_users_on_confirmation_token", unique: true