Skip to content

Commit

Permalink
Drop extracted questions from person
Browse files Browse the repository at this point in the history
  • Loading branch information
mpugach committed Dec 30, 2023
1 parent 75aa29b commit 8c709cc
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
@@ -0,0 +1,9 @@
class DropQuestionnaireFieldsFromPerson < ActiveRecord::Migration[5.0]
def change
remove_column :people, :education
remove_column :people, :favorite_lectors
remove_column :people, :friends_to_be_with
remove_column :people, :marital_status
remove_column :people, :work
end
end
7 changes: 1 addition & 6 deletions db/schema.rb
Expand Up @@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema.define(version: 20231225134459) do
ActiveRecord::Schema.define(version: 20231225144737) do

# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
Expand Down Expand Up @@ -196,18 +196,13 @@
t.string "encrypted_password", limit: 255
t.string "reset_password_token", limit: 255
t.datetime "reset_password_sent_at"
t.text "education"
t.text "work"
t.string "marital_status", limit: 255
t.string "friends_to_be_with", limit: 255
t.string "complex_name", limit: 255
t.string "provider", default: "email", null: false
t.string "uid", default: "", null: false
t.jsonb "tokens", default: {}, null: false
t.string "locale", limit: 2, default: "uk"
t.boolean "fake_email", default: false
t.string "diploma_name"
t.string "favorite_lectors"
t.boolean "notify_schedules", default: true
t.boolean "spam_complain", default: false
t.index ["email"], name: "index_people_on_email", unique: true, using: :btree
Expand Down
8 changes: 2 additions & 6 deletions db/structure.sql
Expand Up @@ -399,18 +399,13 @@ CREATE TABLE public.people (
encrypted_password character varying(255),
reset_password_token character varying(255),
reset_password_sent_at timestamp without time zone,
education text,
work text,
marital_status character varying(255),
friends_to_be_with character varying(255),
complex_name character varying(255),
provider character varying DEFAULT 'email'::character varying NOT NULL,
uid character varying DEFAULT ''::character varying NOT NULL,
tokens jsonb DEFAULT '{}'::jsonb NOT NULL,
locale character varying(2) DEFAULT 'uk'::character varying,
fake_email boolean DEFAULT false,
diploma_name character varying,
favorite_lectors character varying,
notify_schedules boolean DEFAULT true,
spam_complain boolean DEFAULT false
);
Expand Down Expand Up @@ -2067,6 +2062,7 @@ INSERT INTO "schema_migrations" (version) VALUES
('20230226201309'),
('20230305211926'),
('20230306054610'),
('20231225134459');
('20231225134459'),
('20231225144737');


0 comments on commit 8c709cc

Please sign in to comment.