Add NOT NULL
requirement to columns on polls
(#33374)
This commit is contained in:
parent
d2fbf42b0e
commit
b648c64e2e
6 changed files with 62 additions and 10 deletions
|
@ -5,19 +5,19 @@
|
|||
# Table name: polls
|
||||
#
|
||||
# id :bigint(8) not null, primary key
|
||||
# account_id :bigint(8)
|
||||
# status_id :bigint(8)
|
||||
# expires_at :datetime
|
||||
# options :string default([]), not null, is an Array
|
||||
# cached_tallies :bigint(8) default([]), not null, is an Array
|
||||
# multiple :boolean default(FALSE), not null
|
||||
# expires_at :datetime
|
||||
# hide_totals :boolean default(FALSE), not null
|
||||
# votes_count :bigint(8) default(0), not null
|
||||
# last_fetched_at :datetime
|
||||
# lock_version :integer default(0), not null
|
||||
# multiple :boolean default(FALSE), not null
|
||||
# options :string default([]), not null, is an Array
|
||||
# voters_count :bigint(8)
|
||||
# votes_count :bigint(8) default(0), not null
|
||||
# created_at :datetime not null
|
||||
# updated_at :datetime not null
|
||||
# lock_version :integer default(0), not null
|
||||
# voters_count :bigint(8)
|
||||
# account_id :bigint(8) not null
|
||||
# status_id :bigint(8) not null
|
||||
#
|
||||
|
||||
class Poll < ApplicationRecord
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue