class CreateAuthenticationsAndUserProviders < ActiveRecord::CompatibleLegacyMigration.migration_class def self.up create_table :authentications do |t| t.integer :user_id, null: false t.string :provider, :uid, null: false t.timestamps null: false end create_table :user_providers do |t| t.integer :user_id, null: false t.string :provider, :uid, null: false t.timestamps null: false end end def self.down drop_table :authentications drop_table :user_providers end end