Skip to content

Commit

Permalink
use ActiveRecord::ConnectionAdapters::SchemaCreation for rails 6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
lk0001 committed Jan 19, 2021
1 parent 88a84da commit 2d99e3b
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
module ActiveRecord
module ConnectionAdapters
module SQLServer
class SchemaCreation < AbstractAdapter::SchemaCreation
BASE_SCHEMA_CREATION_CLASS = Rails::VERSION::MAJOR >= 6 && Rails::VERSION::MINOR >= 1 ?
SchemaCreation :
AbstractAdapter::SchemaCreation

class SchemaCreation < BASE_SCHEMA_CREATION_CLASS
private

def visit_TableDefinition(o)
Expand Down

0 comments on commit 2d99e3b

Please sign in to comment.