mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Drop Organization from database
Rolling back this feature. It was a nice attempt but no one ever followed up and made this something else than a code of conduct holder...
This commit is contained in:
parent
f7998b8f58
commit
b9a50ef20d
3 changed files with 25 additions and 15 deletions
11
db/migrate/20181229233812_drop_organizations.rb
Normal file
11
db/migrate/20181229233812_drop_organizations.rb
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
class DropOrganizations < ActiveRecord::Migration[7.0]
|
||||||
|
def change
|
||||||
|
drop_table :organizations do |t|
|
||||||
|
t.string :name, null: false
|
||||||
|
t.text :description
|
||||||
|
t.string :picture
|
||||||
|
end
|
||||||
|
|
||||||
|
remove_reference :conferences, :organization, index: true
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
@ -0,0 +1,5 @@
|
||||||
|
class AddCodeOfConductToConference < ActiveRecord::Migration[7.0]
|
||||||
|
def change
|
||||||
|
add_column :conferences, :code_of_conduct, :text
|
||||||
|
end
|
||||||
|
end
|
||||||
24
db/schema.rb
24
db/schema.rb
|
|
@ -2,15 +2,17 @@
|
||||||
# of editing this file, please use the migrations feature of Active Record to
|
# of editing this file, please use the migrations feature of Active Record to
|
||||||
# incrementally modify your database, and then regenerate this schema definition.
|
# incrementally modify your database, and then regenerate this schema definition.
|
||||||
#
|
#
|
||||||
# Note that this schema.rb definition is the authoritative source for your
|
# This file is the source Rails uses to define your schema when running `bin/rails
|
||||||
# database schema. If you need to create the application database on another
|
# db:schema:load`. When creating a new database, `bin/rails db:schema:load` tends to
|
||||||
# system, you should be using db:schema:load, not running all the migrations
|
# be faster and is potentially less error prone than running all of your
|
||||||
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
# migrations from scratch. Old migrations may fail to apply correctly if those
|
||||||
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
# migrations use external dependencies or application code.
|
||||||
#
|
#
|
||||||
# It's strongly recommended that you check this file into your version control system.
|
# It's strongly recommended that you check this file into your version control system.
|
||||||
|
|
||||||
ActiveRecord::Schema.define(version: 20181229233811) do
|
ActiveRecord::Schema[7.0].define(version: 2018_12_29_233813) do
|
||||||
|
# These are extensions that must be enabled in order to support this database
|
||||||
|
enable_extension "plpgsql"
|
||||||
|
|
||||||
create_table "answers", force: :cascade do |t|
|
create_table "answers", force: :cascade do |t|
|
||||||
t.string "title"
|
t.string "title"
|
||||||
|
|
@ -100,11 +102,10 @@ ActiveRecord::Schema.define(version: 20181229233811) do
|
||||||
t.string "picture"
|
t.string "picture"
|
||||||
t.integer "start_hour", default: 9
|
t.integer "start_hour", default: 9
|
||||||
t.integer "end_hour", default: 20
|
t.integer "end_hour", default: 20
|
||||||
t.integer "organization_id"
|
|
||||||
t.integer "ticket_layout", default: 0
|
t.integer "ticket_layout", default: 0
|
||||||
t.string "custom_domain"
|
t.string "custom_domain"
|
||||||
t.integer "booth_limit", default: 0
|
t.integer "booth_limit", default: 0
|
||||||
t.index ["organization_id"], name: "index_conferences_on_organization_id"
|
t.text "code_of_conduct"
|
||||||
end
|
end
|
||||||
|
|
||||||
create_table "conferences_questions", id: false, force: :cascade do |t|
|
create_table "conferences_questions", id: false, force: :cascade do |t|
|
||||||
|
|
@ -285,13 +286,6 @@ ActiveRecord::Schema.define(version: 20181229233811) do
|
||||||
t.datetime "updated_at"
|
t.datetime "updated_at"
|
||||||
end
|
end
|
||||||
|
|
||||||
create_table "organizations", force: :cascade do |t|
|
|
||||||
t.string "name", null: false
|
|
||||||
t.text "description"
|
|
||||||
t.string "picture"
|
|
||||||
t.text "code_of_conduct"
|
|
||||||
end
|
|
||||||
|
|
||||||
create_table "payments", force: :cascade do |t|
|
create_table "payments", force: :cascade do |t|
|
||||||
t.string "last4"
|
t.string "last4"
|
||||||
t.integer "amount"
|
t.integer "amount"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue