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:
parent
656720583f
commit
22784cb55a
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue