Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
`table_exists?` is already exist in `ModelSchema`. https://github.com/rails/rails/blob/5cab344494c340ea82a35b46efa06b94f0b7730b/activerecord/lib/active_record/model_schema.rb#L339-L341
- Loading branch information
Showing
2 changed files
with
0 additions
and
8 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,10 +22,6 @@ def table_name | |
"#{table_name_prefix}#{schema_migrations_table_name}#{table_name_suffix}" | ||
end | ||
|
||
def table_exists? | ||
connection.table_exists?(table_name) | ||
end | ||
|
||
def create_table | ||
unless table_exists? | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
jean-francois-labbe
Contributor
|
||
version_options = connection.internal_string_options_for_primary_key | ||
|
@kamipo where is this method being defined then? Does somehow SchemaMigration pick it up from model_schema? Or is this method not expected to be called ?