comparison db/migrate/20120905072325_set_limit_on_paste.rb @ 499:d2ef59c9a4b4

Use rails rubocop
author nanaya <me@nanaya.net>
date Sun, 15 Dec 2024 22:33:27 +0900
parents 4608d12ebe03
children
comparison
equal deleted inserted replaced
498:300bac944674 499:d2ef59c9a4b4
1 # Reduced size as needed. 1 # Reduced size as needed.
2 class SetLimitOnPaste < ActiveRecord::Migration[4.2] 2 class SetLimitOnPaste < 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 5 t.change :ip, :string, limit: 50
6 t.change :paste_hash, :string, :limit => 150 6 t.change :paste_hash, :string, limit: 150
7 end 7 end
8 end 8 end
9 end 9 end