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:
commit
19bf3dadbd
|
@ -1,4 +1,4 @@
|
|||
class CreateImpressionsTable < ActiveRecord::Migration
|
||||
class CreateImpressionsTable < ActiveRecord::Migration<%= Rails::VERSION::MAJOR >= 5 ? "[#{Rails.version.to_f}]" : "" %>
|
||||
def self.up
|
||||
create_table :impressions, :force => true do |t|
|
||||
t.string :impressionable_type
|
||||
|
|
Loading…
Reference in New Issue