Implemented patch that will add the Rails major version to the migration file
This commit is contained in:
parent
513cd7d331
commit
ec0491110f
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue