Created
September 10, 2019 02:05
-
-
Save ParthivPatel-BTC/810afbe6e469a654a96740ba5519fb3f to your computer and use it in GitHub Desktop.
Migrations - AddColumnsToUsers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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