Rename subscription#type to subscription_type to avoid rails stumbling over polymorphism

This commit is contained in:
Maximilian Grundke
2017-09-13 07:54:43 +02:00
parent 811fc72e1e
commit bb6c266b13
2 changed files with 7 additions and 2 deletions

View File

@@ -0,0 +1,5 @@
class RenameSubscriptionType < ActiveRecord::Migration
def change
rename_column :subscriptions, :type, :subscription_type
end
end