parent
399e8c3ed9
commit
0b342ec0d4
@ -0,0 +1,14 @@ |
||||
class RenameTokens < ActiveRecord::Migration[6.0] |
||||
class Token < ActiveRecord::Base |
||||
end |
||||
|
||||
def up |
||||
Token.where(type: 'Token::Rss').update_all(type: 'Token::RSS') |
||||
Token.where(type: 'Token::Api').update_all(type: 'Token::API') |
||||
end |
||||
|
||||
def down |
||||
Token.where(type: 'Token::RSS').update_all(type: 'Token::Rss') |
||||
Token.where(type: 'Token::API').update_all(type: 'Token::Api') |
||||
end |
||||
end |
Loading…
Reference in new issue