Column | Type | Options |
---|---|---|
name | string | index: true, null: false, unique: true |
- has_many :events, through: :attend_states
- has_many :attend_states
Column | Type | Options |
---|---|---|
name | string | index: true, null: false |
- has_many :users, through: :attend_states
- has_many :attend_states
Column | Type | Options |
---|---|---|
user_id | references | foreign_key: true |
event_id | references | foreign_key: true |
attend | integer |
- belongs_to :user
- belongs_to :event