Skip to content

Commit f41bc15

Browse files
committed
Conform to new data_sources interfaces. See: https://git.io/va4Fp
1 parent c48ec93 commit f41bc15

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
## v4.2.9
22

3-
#### Changed
3+
#### Fixed
44

5-
* Run tests with verbose false.
5+
* Conform to new data_sources interfaces. See: https://git.io/va4Fp
66

7+
#### Changed
78

9+
* Run tests with verbose false.
810

911

1012
## v4.2.8

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.2.8
1+
4.2.9

lib/active_record/connection_adapters/sqlserver/schema_statements.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ def native_database_types
77
@native_database_types ||= initialize_native_database_types.freeze
88
end
99

10+
def data_sources
11+
tables + views
12+
end
13+
1014
def tables(table_type = 'BASE TABLE')
1115
select_values "SELECT #{lowercase_schema_reflection_sql('TABLE_NAME')} FROM INFORMATION_SCHEMA.TABLES #{"WHERE TABLE_TYPE = '#{table_type}'" if table_type} ORDER BY TABLE_NAME", 'SCHEMA'
1216
end

0 commit comments

Comments
 (0)