Implemented patch that will add the Rails major version to the migration file

This commit is contained in:
Jordan Hudgens 2017-06-24 13:38:42 -07:00
parent 513cd7d331
commit ec0491110f
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