Skip to content

Commit

Permalink
Fixing broken migration 3/3
Browse files Browse the repository at this point in the history
  • Loading branch information
kinseyost committed Sep 20, 2016
1 parent 0d558c4 commit 308cfb5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions db/migrate/20160918172700_alter_users.rb
Original file line number Diff line number Diff line change
@@ -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")
Expand Down

0 comments on commit 308cfb5

Please sign in to comment.