From 2dd953bdfd1423a7bf460776478fda06ecd982a0 Mon Sep 17 00:00:00 2001 From: Manu Date: Thu, 10 Jan 2019 15:25:51 -0500 Subject: [PATCH] added hound corrections and removed wrong tables form the schema.rb --- .../site_customization/cards_controller.rb | 10 +- app/models/widget/card.rb | 2 +- db/schema.rb | 127 ------------------ 3 files changed, 6 insertions(+), 133 deletions(-) diff --git a/app/controllers/admin/site_customization/cards_controller.rb b/app/controllers/admin/site_customization/cards_controller.rb index d2737ff09..4f3e4d6a7 100644 --- a/app/controllers/admin/site_customization/cards_controller.rb +++ b/app/controllers/admin/site_customization/cards_controller.rb @@ -1,8 +1,8 @@ class Admin::SiteCustomization::CardsController < Admin::SiteCustomization::BaseController - skip_authorization_check - - def index - @cards = ::Widget::Card.page(params[:page_id]) - end + skip_authorization_check + + def index + @cards = ::Widget::Card.page(params[:page_id]) + end end diff --git a/app/models/widget/card.rb b/app/models/widget/card.rb index 2113997f8..69023b0ce 100644 --- a/app/models/widget/card.rb +++ b/app/models/widget/card.rb @@ -22,5 +22,5 @@ class Widget::Card < ActiveRecord::Base def self.page(page_id) where(site_customization_page_id: page_id) end - + end diff --git a/db/schema.rb b/db/schema.rb index 17da06042..df8c3b37f 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -504,46 +504,6 @@ ActiveRecord::Schema.define(version: 20181218164126) do add_index "geozones_polls", ["geozone_id"], name: "index_geozones_polls_on_geozone_id", using: :btree add_index "geozones_polls", ["poll_id"], name: "index_geozones_polls_on_poll_id", using: :btree - create_table "house_images", force: :cascade do |t| - t.integer "house_id" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - - create_table "house_news", force: :cascade do |t| - t.string "title" - t.string "photo" - t.string "link" - t.string "house_id" - t.datetime "created_at" - t.datetime "updated_at" - end - - create_table "houses", force: :cascade do |t| - t.string "name" - t.string "address" - t.string "schedule" - t.string "phone" - t.string "email" - t.string "photo" - t.boolean "disability_access" - t.integer "zonal_administration_id" - t.datetime "created_at" - t.datetime "updated_at" - end - - create_table "houses_administrators", force: :cascade do |t| - t.integer "user_id" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - - create_table "houses_age_ranges", force: :cascade do |t| - t.string "name" - t.datetime "created_at" - t.datetime "updated_at" - end - create_table "i18n_content_translations", force: :cascade do |t| t.integer "i18n_content_id", null: false t.string "locale", null: false @@ -832,7 +792,6 @@ ActiveRecord::Schema.define(version: 20181218164126) do t.integer "zoom" t.integer "proposal_id" t.integer "investment_id" - t.integer "house_id" end add_index "map_locations", ["investment_id"], name: "index_map_locations_on_investment_id", using: :btree @@ -879,13 +838,6 @@ ActiveRecord::Schema.define(version: 20181218164126) do add_index "moderators", ["user_id"], name: "index_moderators_on_user_id", using: :btree - create_table "neighborhoods", force: :cascade do |t| - t.string "name" - t.integer "id_parish" - t.datetime "created_at" - t.datetime "updated_at" - end - create_table "newsletters", force: :cascade do |t| t.string "subject" t.string "segment_recipient", null: false @@ -918,12 +870,6 @@ ActiveRecord::Schema.define(version: 20181218164126) do add_index "organizations", ["user_id"], name: "index_organizations_on_user_id", using: :btree - create_table "parishes", force: :cascade do |t| - t.string "name" - t.datetime "created_at" - t.datetime "updated_at" - end - create_table "poll_answers", force: :cascade do |t| t.integer "question_id" t.integer "author_id" @@ -1433,11 +1379,6 @@ ActiveRecord::Schema.define(version: 20181218164126) do t.integer "failed_email_digests_count", default: 0 t.text "former_users_data_log", default: "" t.boolean "public_interests", default: false - t.string "userlastname" - t.integer "user_parish" - t.integer "user_neighborhood" - t.string "ethnic_group" - t.string "studies_level" t.boolean "recommended_debates", default: true t.boolean "recommended_proposals", default: true end @@ -1516,39 +1457,6 @@ ActiveRecord::Schema.define(version: 20181218164126) do add_index "visits", ["started_at"], name: "index_visits_on_started_at", using: :btree add_index "visits", ["user_id"], name: "index_visits_on_user_id", using: :btree - create_table "volunt_categories", force: :cascade do |t| - t.string "name" - t.datetime "created_at" - t.datetime "updated_at" - end - - create_table "volunt_programs", force: :cascade do |t| - t.string "title" - t.text "photo" - t.string "schedule" - t.integer "quota" - t.string "short_description" - t.text "long_description" - t.integer "volunt_category_id" - t.datetime "created_at" - t.datetime "updated_at" - t.string "phone" - t.string "email" - end - - create_table "volunt_users", force: :cascade do |t| - t.integer "id_user" - t.integer "volunt_program_id" - t.datetime "created_at" - t.datetime "updated_at" - end - - create_table "volunteerings_administrators", force: :cascade do |t| - t.integer "user_id" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - create_table "votes", force: :cascade do |t| t.integer "votable_id" t.string "votable_type" @@ -1607,41 +1515,6 @@ ActiveRecord::Schema.define(version: 20181218164126) do t.datetime "updated_at", null: false end - create_table "workshop_images", force: :cascade do |t| - t.integer "workshop_id" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - - create_table "workshop_users", force: :cascade do |t| - t.integer "id_user" - t.integer "workshop_id" - t.datetime "created_at" - t.datetime "updated_at" - t.integer "status" - end - - create_table "workshops", force: :cascade do |t| - t.string "name" - t.string "teacher" - t.string "schedule" - t.integer "quota" - t.string "short_description" - t.text "long_description" - t.string "photo" - t.integer "house_id" - t.integer "id_age_range" - t.datetime "created_at" - t.datetime "updated_at" - t.string "status" - end - - create_table "zonal_administrations", force: :cascade do |t| - t.string "name" - t.datetime "created_at" - t.datetime "updated_at" - end - add_foreign_key "administrators", "users" add_foreign_key "annotations", "legacy_legislations" add_foreign_key "annotations", "users"