added hound corrections and removed wrong tables form the schema.rb

This commit is contained in:
Manu
2019-01-10 15:25:51 -05:00
parent 722a431b54
commit 2dd953bdfd
3 changed files with 6 additions and 133 deletions

View File

@@ -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

View File

@@ -22,5 +22,5 @@ class Widget::Card < ActiveRecord::Base
def self.page(page_id)
where(site_customization_page_id: page_id)
end
end

View File

@@ -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"