module HarpiyaExtension::Migration
Public Class Methods
[](version)
click to toggle source
# File lib/harpiya_extension/migration.rb, line 3 def self.[](version) # Rails 5.1 requires to use versioned migrations # but < 5.0 doesn't support them if Rails.gem_version >= Gem::Version.new('5.x') ActiveRecord::Migration[version] else ActiveRecord::Migration end end