activerecord-rdb-adapter 0.8.1 → 0.8.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -1
- data/lib/active_record/connection_adapters/rdb/schema_statements.rb +4 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8466e32fd4d30bd70536d64a3a82219dbd374b2ded7510b8e3eb22edb8c4db9f
|
4
|
+
data.tar.gz: 2fee3dabf84e12601fd2673d8e8558f4564b81ac681e85abb767cf4655344584
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fdddca9210836e27d8b17dd4dd06fb1b04b2b76e4f0f4a11137f29c85443c3e2dccc95f6b063718f4ec294832f2dc7fe446175bd1bfa6999f7e19a7453ac5912
|
7
|
+
data.tar.gz: 39843aa7e80b57573eb38dd1ce2e1f2677b68f5688dc4fbae640d668340e8dc39c9cedd88ee8fbe60808d14789e1982f3366113768d3908679f4313705271281
|
data/README.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
|
+
# ActiveRecord RDB Adapter
|
2
|
+
|
1
3
|
ActiveRecord adapter that allows you to use ActiveRecord 5+(**Rails 5.2 is recommended**) and **Ruby 2.5+** with [RedDatabase 3+](http://reddatabase.ru/) and Firebird 3
|
2
4
|
|
3
5
|
[![Gem Version](https://badge.fury.io/rb/activerecord-rdb-adapter.svg)](https://badge.fury.io/rb/activerecord-rdb-adapter)
|
4
6
|
|
5
|
-
|
7
|
+
GUI Database Editor for RedDatabase: [RedExpert](http://reddatabase.ru/downloads/redexpert/)
|
8
|
+
|
9
|
+
inspired by [activerecord-fb-adapter](https://github.com/rowland/activerecord-fb-adapter) and [firebird_adapter](https://github.com/FabioMR/firebird_adapter)
|
@@ -116,6 +116,10 @@ module ActiveRecord
|
|
116
116
|
nil
|
117
117
|
end
|
118
118
|
|
119
|
+
def sequence_exists?(sequence_name)
|
120
|
+
@connection.generator_names.include?(sequence_name)
|
121
|
+
end
|
122
|
+
|
119
123
|
def trigger_exists?(trigger_name)
|
120
124
|
!execute(squish_sql(<<-END_SQL))
|
121
125
|
select 1
|
@@ -394,10 +398,6 @@ module ActiveRecord
|
|
394
398
|
boolean: { name: 'boolean' } }
|
395
399
|
end
|
396
400
|
|
397
|
-
def sequence_exists?(sequence_name)
|
398
|
-
@connection.generator_names.include?(sequence_name)
|
399
|
-
end
|
400
|
-
|
401
401
|
def create_table_definition(*args)
|
402
402
|
Rdb::TableDefinition.new(*args)
|
403
403
|
end
|