diff options
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20150510083747_change_documents_title_limit.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/20150510083747_change_documents_title_limit.rb b/db/migrate/20150510083747_change_documents_title_limit.rb new file mode 100644 index 000000000..6e3090334 --- /dev/null +++ b/db/migrate/20150510083747_change_documents_title_limit.rb @@ -0,0 +1,9 @@ +class ChangeDocumentsTitleLimit < ActiveRecord::Migration + def self.up + change_column :documents, :title, :string, :limit => nil, :default => '', :null => false + end + + def self.down + change_column :documents, :title, :string, :limit => 60, :default => '', :null => false + end +end |