Skip to content

Instantly share code, notes, and snippets.

@ParthivPatel-BTC
Created September 10, 2019 02:05
Show Gist options
  • Save ParthivPatel-BTC/810afbe6e469a654a96740ba5519fb3f to your computer and use it in GitHub Desktop.
Save ParthivPatel-BTC/810afbe6e469a654a96740ba5519fb3f to your computer and use it in GitHub Desktop.
Migrations - AddColumnsToUsers
class AddColumnsToUsers < ActiveRecord::Migration[5.2]
def change
add_column :users, :name, :string
add_column :users, :access_token, :string
add_column :users, :expires_at, :datetime
add_column :users, :refresh_token, :string
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment