11 lines
267 B
Ruby
11 lines
267 B
Ruby
class UpdateOauth < ActiveRecord::Migration[4.2]
|
|
def up
|
|
add_column :oauth_tokens, :scope, :string
|
|
add_column :oauth_tokens, :valid_to, :timestamp
|
|
end
|
|
|
|
def down
|
|
remove_column :oauth_tokens, :valid_to
|
|
remove_column :oauth_tokens, :scope
|
|
end
|
|
end
|