Syntax Error Caused by Generator
hacktorious opened this issue · comments
Running the following command causes a random comma to be inserted in the migration file for an already existing user migration. This in turn causes the migration to fail.
rails generate knock:token_controller user
`class CreateUsers < ActiveRecord::Migration[5.0]
def change
create_table :users do |t|
t.string :f_name
t.string :l_name
t.string, :email <==== A comma was added here for some reason
t.string :password_digest
t.timestamps
end
end
end`
Decided to use a different implementation since I couldn't get this to work.