comparison db/migrate/20120905074204_return_not_null_to_paste.rb @ 463:4608d12ebe03

Sync database
author nanaya <me@nanaya.pro>
date Mon, 10 Dec 2018 02:35:08 +0900
parents 682abad78313
children
comparison
equal deleted inserted replaced
462:e8d6c631a55b 463:4608d12ebe03
1 # Add constraints. 1 # Add constraints.
2 class ReturnNotNullToPaste < ActiveRecord::Migration 2 class ReturnNotNullToPaste < ActiveRecord::Migration[4.2]
3 def change 3 def change
4 change_table :pastes do |t| 4 change_table :pastes do |t|
5 t.change :ip, :string, :limit => 50, :null => false 5 t.change :ip, :string, :limit => 50, :null => false
6 t.change :paste_hash, :string, :limit => 150, :null => false 6 t.change :paste_hash, :string, :limit => 150, :null => false
7 t.change :paste, :text, :null => false 7 t.change :paste, :text, :null => false