1
0
Fork 0
mirror of https://github.com/heartcombo/devise.git synced 2022-11-09 12:18:31 -05:00

Remove ActiveRecord::Migration inheritance deprecation warning.

This commit is contained in:
Lucas Mazza 2016-06-27 16:50:26 -03:00
parent 656720583f
commit 22784cb55a
No known key found for this signature in database
GPG key ID: C009F9A6BE4A44CB

View file

@ -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