diff --git a/test/rails_app/db/migrate/20100401102949_create_tables.rb b/test/rails_app/db/migrate/20100401102949_create_tables.rb index fd90b504..4eecbc2c 100644 --- a/test/rails_app/db/migrate/20100401102949_create_tables.rb +++ b/test/rails_app/db/migrate/20100401102949_create_tables.rb @@ -1,4 +1,8 @@ -class CreateTables < ActiveRecord::Migration +superclass = ActiveRecord::Migration +# TODO: Inherit from the 5.0 Migration class directly when we drop support for Rails 4. +superclass = ActiveRecord::Migration[5.0] if superclass.respond_to?(:[]) + +class CreateTables < superclass def self.up create_table :users do |t| t.string :username