From cf706bdb39e8baab63838724f579b9e7823846af Mon Sep 17 00:00:00 2001 From: Kevin Musiorski <1021154+RudyOnRails@users.noreply.github.com> Date: Thu, 29 Nov 2018 15:42:40 -0600 Subject: [PATCH] fixing migration problem resolves #110 --- lib/generators/templates/migration.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/generators/templates/migration.rb b/lib/generators/templates/migration.rb index 0b39c01..751c95f 100644 --- a/lib/generators/templates/migration.rb +++ b/lib/generators/templates/migration.rb @@ -1,4 +1,4 @@ -class ActsAsFollowerMigration < ActiveRecord::Migration +class ActsAsFollowerMigration < ActiveRecord::Migration[<%= Rails.version.to_f %>] def self.up create_table :follows, force: true do |t| t.references :followable, polymorphic: true, null: false