From a2ddb6cf2d7bf6f393c881383147877dc4657f3f Mon Sep 17 00:00:00 2001 From: David Taylor Date: Tue, 23 Apr 2019 12:34:32 +0100 Subject: [PATCH] DEV: Increase max length of theme_field name column Now that we have custom SCSS files with arbitrary names, it's easy to exceed 30 characters --- app/models/theme_field.rb | 2 +- .../20190423112954_increase_theme_field_name_length.rb | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20190423112954_increase_theme_field_name_length.rb diff --git a/app/models/theme_field.rb b/app/models/theme_field.rb index c1fe2b7a030..f906fb83e60 100644 --- a/app/models/theme_field.rb +++ b/app/models/theme_field.rb @@ -471,7 +471,7 @@ end # id :integer not null, primary key # theme_id :integer not null # target_id :integer not null -# name :string(30) not null +# name :string(255) not null # value :text not null # value_baked :text # created_at :datetime not null diff --git a/db/migrate/20190423112954_increase_theme_field_name_length.rb b/db/migrate/20190423112954_increase_theme_field_name_length.rb new file mode 100644 index 00000000000..52f3b2c1ff3 --- /dev/null +++ b/db/migrate/20190423112954_increase_theme_field_name_length.rb @@ -0,0 +1,5 @@ +class IncreaseThemeFieldNameLength < ActiveRecord::Migration[5.2] + def change + change_column :theme_fields, :name, :string, limit: 255 + end +end