OSDN Git Service

t#29388:fix add limit at author's name
authoryasushiito <yas@pen-chan.jp>
Tue, 29 Jan 2013 10:39:26 +0000 (19:39 +0900)
committeryasushiito <yas@pen-chan.jp>
Tue, 29 Jan 2013 10:39:26 +0000 (19:39 +0900)
db/migrate/20130129102023_add_namelimit_on_author.rb [new file with mode: 0644]

diff --git a/db/migrate/20130129102023_add_namelimit_on_author.rb b/db/migrate/20130129102023_add_namelimit_on_author.rb
new file mode 100644 (file)
index 0000000..e957bd8
--- /dev/null
@@ -0,0 +1,8 @@
+class AddNamelimitOnAuthor < ActiveRecord::Migration
+  def up
+    change_column :authors, :name, :string, :limit => 30
+  end
+
+  def down
+  end
+end