You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20221004172825_ensure_text_formatting_setting_is_stored_in_db.rb 263B

12345678
  1. class EnsureTextFormattingSettingIsStoredInDb < ActiveRecord::Migration[6.1]
  2. def change
  3. unless Setting.where(name: "text_formatting").exists?
  4. setting = Setting.new(:name => "text_formatting", :value => 'textile')
  5. setting.save!
  6. end
  7. end
  8. end