Mercurial > zeropaste
comparison db/migrate/20150916161622_strict_character_lengths.rb @ 419:e34e0de34b65
Prevent creating stupid long misc fields
author | nanaya <me@myconan.net> |
---|---|
date | Thu, 17 Sep 2015 01:23:02 +0900 |
parents | |
children | 4608d12ebe03 |
comparison
equal
deleted
inserted
replaced
418:a69dd2d37950 | 419:e34e0de34b65 |
---|---|
1 class StrictCharacterLengths < ActiveRecord::Migration | |
2 def change | |
3 change_table :pastes do |t| | |
4 t.change :key, :string, :limit => 100 | |
5 t.change :secret, :string, :limit => 100 | |
6 t.change :language, :string, :limit => 100 | |
7 end | |
8 end | |
9 end |