Merge pull request #248 from jordanhudgens/master

Implemented patch that will add the Rails major version to the migration file
This commit is contained in:
Jonas Grau 2017-06-25 09:21:50 +02:00 committed by GitHub
commit 19bf3dadbd
1 changed files with 1 additions and 1 deletions

View File

@ -1,4 +1,4 @@
class CreateImpressionsTable < ActiveRecord::Migration class CreateImpressionsTable < ActiveRecord::Migration<%= Rails::VERSION::MAJOR >= 5 ? "[#{Rails.version.to_f}]" : "" %>
def self.up def self.up
create_table :impressions, :force => true do |t| create_table :impressions, :force => true do |t|
t.string :impressionable_type t.string :impressionable_type