comparison db/migrate/20120905074204_return_not_null_to_paste.rb @ 23:f5d2f373770b

Reenforce not null.
author Edho Arief <edho@myconan.net>
date Wed, 05 Sep 2012 14:43:38 +0700
parents
children 682abad78313
comparison
equal deleted inserted replaced
22:032686a0c995 23:f5d2f373770b
1 class ReturnNotNullToPaste < ActiveRecord::Migration
2 def change
3 change_table :pastes do |t|
4 t.change :ip, :string, :limit => 50, :null => false
5 t.change :paste_hash, :string, :limit => 150, :null => false
6 t.change :paste, :text, :null => false
7 end
8 end
9 end