]> git.openstreetmap.org Git - rails.git/blob - db/migrate/050_add_user_index_to_diary_comments.rb
Add frozen_string_literal comments to ruby files
[rails.git] / db / migrate / 050_add_user_index_to_diary_comments.rb
1 # frozen_string_literal: true
2
3 class AddUserIndexToDiaryComments < ActiveRecord::Migration[4.2]
4   def self.up
5     add_index :diary_comments, [:user_id, :created_at], :name => "diary_comment_user_id_created_at_index"
6   end
7
8   def self.down
9     remove_index :diary_comments, :name => "diary_comment_user_id_created_at_index"
10   end
11 end