From 44c660bb5ab3bf50689b366613d4ce55928698d4 Mon Sep 17 00:00:00 2001 From: kinseyost Date: Tue, 20 Sep 2016 03:20:43 +0000 Subject: [PATCH] Fixed broken migration 4/3 --- db/migrate/20160918172700_alter_users.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/db/migrate/20160918172700_alter_users.rb b/db/migrate/20160918172700_alter_users.rb index 1e6a6b5..5e87616 100644 --- a/db/migrate/20160918172700_alter_users.rb +++ b/db/migrate/20160918172700_alter_users.rb @@ -1,9 +1,9 @@ class AlterUsers < ActiveRecord::Migration[5.0] def up - # rename_table("users", "admin_users") - # add_column("admin_users", "username", :string, :limit => 25, :after => "email") - # change_column("admin_users", "email", :string, :limit => 100) + rename_table("users", "admin_users") + add_column("admin_users", "username", :string, :limit => 25, :after => "email") + change_column("admin_users", "email", :string, :limit => 100) rename_column("admin_users", "password", "hashed_password") puts("Always add an index for foreign keys and columns that are used frequently!") add_index("admin_users", "username")