-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix migration file for rails 5 #985
Changes from 8 commits
4e47770
aa4f22e
7ba04f9
911b165
45eb637
1325e21
9b2e5d5
2476822
7509e89
b0111c7
24fbb75
38fd452
0cf2cf4
d6bdbe1
bfc00b3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,8 +7,9 @@ class Doorkeeper::ApplicationOwnerGenerator < Rails::Generators::Base | |
|
||
def application_owner | ||
migration_template( | ||
'add_owner_to_application_migration.rb', | ||
'db/migrate/add_owner_to_application.rb' | ||
'add_owner_to_application_migration.rb.erb', | ||
'db/migrate/add_owner_to_application.rb', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping. |
||
migration_version: migration_version | ||
) | ||
end | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,8 +12,9 @@ def self.next_migration_number(path) | |
def previous_refresh_token | ||
if no_previous_refresh_token_column? | ||
migration_template( | ||
'add_previous_refresh_token_to_access_tokens.rb', | ||
'db/migrate/add_previous_refresh_token_to_access_tokens.rb' | ||
'add_previous_refresh_token_to_access_tokens.rb.erb', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping. |
||
'db/migrate/add_previous_refresh_token_to_access_tokens.rb', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping. |
||
migration_version: migration_version | ||
) | ||
end | ||
end | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
class AddPreviousRefreshTokenToAccessTokens < ActiveRecord::Migration | ||
class AddPreviousRefreshTokenToAccessTokens < ActiveRecord::Migration<%= migration_version %> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. unterminated string meets end of file |
||
def change | ||
add_column( | ||
:oauth_access_tokens, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.