mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 07:53:39 +08:00
a90ad52dff
This is the first in a multi-part change to move the custom fields to a new table. It includes: - Adding a new CategorySetting model and corresponding table. - Populating it with data from the category_custom_fields table.
13 lines
270 B
Ruby
13 lines
270 B
Ruby
# frozen_string_literal: true
|
|
|
|
RSpec.describe CategorySetting do
|
|
it { is_expected.to belong_to(:category) }
|
|
|
|
it do
|
|
is_expected.to validate_numericality_of(:num_auto_bump_daily)
|
|
.only_integer
|
|
.is_greater_than_or_equal_to(0)
|
|
.allow_nil
|
|
end
|
|
end
|