Skip to content

Commit d388e78

Browse files
committed
database: add new info_for_partner column
1 parent b56f3b1 commit d388e78

File tree

5 files changed

+10
-1
lines changed

5 files changed

+10
-1
lines changed

app/models/partner.rb

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#
55
# id :integer not null, primary key
66
# email :string
7+
# info_for_partner :string
78
# name :string
89
# notes :text
910
# quota :integer
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
class AddInfoForPartnerToPartner < ActiveRecord::Migration[7.2]
2+
def change
3+
add_column :partners, :info_for_partner, :string
4+
end
5+
end

db/schema.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#
1111
# It's strongly recommended that you check this file into your version control system.
1212

13-
ActiveRecord::Schema[7.2].define(version: 2025_03_02_154355) do
13+
ActiveRecord::Schema[7.2].define(version: 2025_03_06_195915) do
1414
# These are extensions that must be enabled in order to support this database
1515
enable_extension "plpgsql"
1616

@@ -645,6 +645,7 @@
645645
t.integer "quota"
646646
t.bigint "partner_group_id"
647647
t.bigint "default_storage_location_id"
648+
t.string "info_for_partner"
648649
t.index ["default_storage_location_id"], name: "index_partners_on_default_storage_location_id"
649650
t.index ["organization_id"], name: "index_partners_on_organization_id"
650651
t.index ["partner_group_id"], name: "index_partners_on_partner_group_id"

spec/factories/partners.rb

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#
55
# id :integer not null, primary key
66
# email :string
7+
# info_for_partner :string
78
# name :string
89
# notes :text
910
# quota :integer

spec/models/partner_spec.rb

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#
55
# id :integer not null, primary key
66
# email :string
7+
# info_for_partner :string
78
# name :string
89
# notes :text
910
# quota :integer

0 commit comments

Comments
 (0)