comparison db/migrate/20150916161622_strict_character_lengths.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 class StrictCharacterLengths < ActiveRecord::Migration[4.2] 1 class StrictCharacterLengths < ActiveRecord::Migration[4.2]
2 def change 2 def change
3 change_table :pastes do |t| 3 change_table :pastes do |t|
4 t.change :key, :string, :limit => 100 4 t.change :key, :string, limit: 100
5 t.change :secret, :string, :limit => 100 5 t.change :secret, :string, limit: 100
6 t.change :language, :string, :limit => 100 6 t.change :language, :string, limit: 100
7 end 7 end
8 end 8 end
9 end 9 end