title: DangerousAttributeError in OmniAuth create is defined by ActiveRecord
body: <p>Please see this page, as I have the same problem: <a href="https://stackoverflow.com/questions/10221273/dangerousattributeerror-in-omniauth-railscast-tutorial-create-is-defined-by-act">DangerousAttributeError in OmniAuth Railscast Tutorial: create is defined by ActiveRecord</a></p>
  
  <p>However being fairly new to rails, I am not quite sure as to how to remove the fields they speak of from the database. In other-words, there is no step-by-step concise way described anywhere in that post.</p>
  
  <p>The below post is in fact a proper solution, but it is unclear as to what he was referring to when he wrote: "rails g migration remove_silly_authentication_fields_which_should_not_be_there" Not sure what "silly_authentication_fields_which_should_not_be_there" is exactly. </p>
  
  <p>Here is the post I am referring to:</p>
  
  <blockquote>
    <p>So just to finish the question off you will need to create a migration
    using this command:</p>
    
    <p>rails g migration
    remove_silly_authentication_fields_which_should_not_be_there</p>
    
    <p>Which looks something like this:</p>
    
    <p>class DropSillyControllerAttributes &lt; ActiveRecord::Migration    def
    change
          remove_column :authentications, :index
          remove_column :authentications, :create
          remove_column :authentications, :destroy    end end</p>
    
    <p>And run it using the usual:</p>
    
    <p>rake db:migration</p>
    
    <p>Or alternatively you should be able to run:</p>
    
    <p>rake db:rollback</p>
    
    <p>To roll back the changes just made to the database and:</p>
    
    <p>rails d scaffold authentication</p>
    
    <p>To remove all the files, then run:</p>
    
    <p>rails g scaffold authentication user_id:integer provider:string
    uid:string</p>
    
    <p>And do the other stuff manually</p>
    
    <p>I did exactly the same thing myself by the way.</p>
  </blockquote>