Rename type column to category to avoid conflict with rails

This commit is contained in:
Maximilian Grundke
2018-08-14 17:55:17 +02:00
parent d6c64f5b91
commit f1278a7f48
2 changed files with 7 additions and 2 deletions

View File

@@ -0,0 +1,5 @@
class RenameEventsTypeToCategory < ActiveRecord::Migration
def change
rename_column :events, :type, :category
end
end