limits the length of debates.title to 80 in the db

This commit is contained in:
kikito
2015-08-06 13:18:21 +02:00
parent ca575a6f20
commit 6b58fd64bb
2 changed files with 9 additions and 4 deletions

View File

@@ -0,0 +1,5 @@
class ChangeDebatesTitleLength < ActiveRecord::Migration
def change
change_column :debates, :title, :string, limit: 80
end
end