diff options
author | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-01-24 13:49:44 +0100 |
---|---|---|
committer | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-01-24 13:49:44 +0100 |
commit | ea3df5a7eb079982a8fcda3df572a0d1433b7f52 (patch) | |
tree | a6bf21ab9e2187ff1b17654a0df2c9309c62146d /db/migrate | |
parent | b792c8eb19fba97a7dab5cd2be8e6bd74617e7d2 (diff) |
Better UI on mobile phones.
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20130124123128_add_mobile_max_string_length_parameter.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/db/migrate/20130124123128_add_mobile_max_string_length_parameter.rb b/db/migrate/20130124123128_add_mobile_max_string_length_parameter.rb new file mode 100644 index 0000000..6bbac04 --- /dev/null +++ b/db/migrate/20130124123128_add_mobile_max_string_length_parameter.rb @@ -0,0 +1,11 @@ +class AddMobileMaxStringLengthParameter < ActiveRecord::Migration + def up + GsParameter.create(:name => 'MOBILE_MAX_STRING_LENGTH', :section => 'HTML', :value => '8', :class_type => 'Integer', :description => 'Max length of a string on a mobile devise.') + GsParameter.create(:name => 'DESKTOP_MAX_STRING_LENGTH', :section => 'HTML', :value => '30', :class_type => 'Integer', :description => 'Max length of a string on a desktop devise.') + end + + def down + GsParameter.where(:name => 'MOBILE_MAX_STRING_LENGTH').destroy_all + GsParameter.where(:name => 'DESKTOP_MAX_STRING_LENGTH').destroy_all + end +end |