Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion app/models/organization.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
# receive_email_on_requests :boolean default(FALSE), not null
# reminder_day :integer
# repackage_essentials :boolean default(FALSE), not null
# short_name :string
# signature_for_distribution_pdf :boolean default(FALSE)
# state :string
# street :string
Expand Down
13 changes: 13 additions & 0 deletions db/migrate/20250504183911_remove_short_name_from_organizations.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
class RemoveShortNameFromOrganizations < ActiveRecord::Migration[8.0]
def up
safety_assured do
remove_index :organizations, :short_name
Comment thread
jp524 marked this conversation as resolved.
remove_column :organizations, :short_name
end
end

def down
add_column :organizations, :short_name
add_index :organizations, :short_name
end
end
4 changes: 1 addition & 3 deletions db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema[8.0].define(version: 2025_04_04_102321) do
ActiveRecord::Schema[8.0].define(version: 2025_05_04_183911) do
# These are extensions that must be enabled in order to support this database
enable_extension "pg_catalog.plpgsql"

Expand Down Expand Up @@ -465,7 +465,6 @@

create_table "organizations", id: :serial, force: :cascade do |t|
t.string "name"
t.string "short_name"
t.string "email"
t.string "url"
t.datetime "created_at", precision: nil, null: false
Expand Down Expand Up @@ -497,7 +496,6 @@
t.boolean "receive_email_on_requests", default: false, null: false
t.boolean "include_in_kind_values_in_exported_files", default: false, null: false
t.index ["latitude", "longitude"], name: "index_organizations_on_latitude_and_longitude"
t.index ["short_name"], name: "index_organizations_on_short_name"
end

create_table "partner_forms", force: :cascade do |t|
Expand Down
1 change: 0 additions & 1 deletion spec/factories/organizations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
# receive_email_on_requests :boolean default(FALSE), not null
# reminder_day :integer
# repackage_essentials :boolean default(FALSE), not null
# short_name :string
# signature_for_distribution_pdf :boolean default(FALSE)
# state :string
# street :string
Expand Down
1 change: 0 additions & 1 deletion spec/models/organization_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
# receive_email_on_requests :boolean default(FALSE), not null
# reminder_day :integer
# repackage_essentials :boolean default(FALSE), not null
# short_name :string
# signature_for_distribution_pdf :boolean default(FALSE)
# state :string
# street :string
Expand Down