Sha256: 4021b463a5c0b0f3f787f69ec4f3b8764f7a0a85e538010b8f1dcc7329c4ed84
Contents?: true
Size: 414 Bytes
Versions: 7
Compression:
Stored size: 414 Bytes
Contents
# frozen_string_literal: true class DropDatabaseAuthenticatable < ActiveRecord::Migration[4.2] def up change_table(:users) do |t| t.remove :email t.remove :encrypted_password end end def down change_table(:users) do |t| t.string :email, null: false, default: '' t.string :encrypted_password, null: false, default: '' t.index :email, unique: true end end end
Version data entries
7 entries across 7 versions & 1 rubygems