2023-11-01 20:54:06 +01:00
|
|
|
# == Schema Information
|
|
|
|
#
|
|
|
|
# Table name: bubbles
|
|
|
|
#
|
|
|
|
# id :uuid not null, primary key
|
|
|
|
# color :string default("#0000ff"), not null
|
|
|
|
# description :text default(""), not null
|
|
|
|
# name :string not null
|
|
|
|
# created_at :datetime not null
|
|
|
|
# updated_at :datetime not null
|
2023-12-31 18:11:17 +01:00
|
|
|
# owner_id :uuid not null
|
|
|
|
#
|
|
|
|
# Indexes
|
|
|
|
#
|
|
|
|
# index_bubbles_on_owner_id (owner_id)
|
|
|
|
#
|
|
|
|
# Foreign Keys
|
|
|
|
#
|
|
|
|
# fk_rails_... (owner_id => users.id)
|
2023-11-01 20:54:06 +01:00
|
|
|
#
|
|
|
|
class Bubble < ApplicationRecord
|
|
|
|
validates :name, presence: true, allow_blank: false
|
2023-12-31 18:11:17 +01:00
|
|
|
belongs_to :owner, class_name: "User"
|
2023-11-01 20:54:06 +01:00
|
|
|
end
|