Skip to content

Commit 5f3c522

Browse files
committed
Fixing dumb mistakes, thanks @offslinker
1 parent 58aa3d3 commit 5f3c522

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/active_record/connection_adapters/sqlserver/core_ext/active_record.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
require 'active_record/version'
2+
require 'active_support/core_ext/class/inheritable_attributes'
23

34
module ActiveRecord
45
module ConnectionAdapters

lib/active_record/connection_adapters/sqlserver/schema_statements.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ def remove_check_constraints(table_name, column_name)
241241
end
242242
end
243243

244-
def remove_default_constraint(table_name, column_name))
244+
def remove_default_constraint(table_name, column_name)
245245
# If their are foreign keys in this table, we could still get back a 2D array, so flatten just in case.
246246
select_all("EXEC sp_helpconstraint '#{quote_string(table_name)}','nomsg'").flatten.select do |row|
247247
row['constraint_type'] == "DEFAULT on column #{column_name}"

0 commit comments

Comments
 (0)