We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 186f75f commit 94dd8a2Copy full SHA for 94dd8a2
lib/active_record/connection_adapters/sqlserver/database_tasks.rb
@@ -9,7 +9,8 @@ def create_database(database, options = {})
9
db_options = create_database_options(options)
10
edition_options = create_database_edition_options(options)
11
compatibility_options = create_database_compatibility_options(options)
12
- execute "CREATE DATABASE #{name} #{compatibility_options} #{db_options} #{edition_options}"
+ execute "CREATE DATABASE #{name} #{db_options} #{edition_options}"
13
+ execute "ALTER DATABASE #{name} SET COMPATIBILITY_LEVEL = #{compatibility_level}" if compatibility_level.present?
14
end
15
16
def drop_database(database)
0 commit comments