Skip to content

Commit aedc3e2

Browse files
committed
Growing up. Only we say if a type is valid. Abstract is always true.
1 parent 001e723 commit aedc3e2

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

lib/active_record/connection_adapters/sqlserver/schema_statements.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ def initialize_native_database_types
164164
{
165165
primary_key: 'int NOT NULL IDENTITY(1,1) PRIMARY KEY',
166166
integer: { name: 'int', limit: 4 },
167+
bigint: { name: 'bigint' },
167168
boolean: { name: 'bit' },
168169
decimal: { name: 'decimal' },
169170
money: { name: 'money' },

lib/active_record/connection_adapters/sqlserver_adapter.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ def initialize(connection, logger, pool, config)
5757

5858
# === Abstract Adapter ========================================== #
5959

60+
def valid_type?(type)
61+
!native_database_types[type].nil?
62+
end
63+
6064
def adapter_name
6165
ADAPTER_NAME
6266
end

0 commit comments

Comments
 (0)