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")