schema_plus_default_expr 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/prs.yml +39 -0
- data/README.md +9 -0
- data/gemfiles/activerecord-6.1/Gemfile.base +4 -0
- data/gemfiles/activerecord-6.1/Gemfile.postgresql +10 -0
- data/gemfiles/activerecord-6.1/Gemfile.sqlite3 +10 -0
- data/gemfiles/activerecord-7.0/Gemfile.base +4 -0
- data/gemfiles/activerecord-7.0/Gemfile.postgresql +10 -0
- data/gemfiles/activerecord-7.0/Gemfile.sqlite3 +10 -0
- data/lib/schema_plus/default_expr/version.rb +1 -1
- data/schema_dev.yml +3 -0
- data/schema_plus_default_expr.gemspec +3 -3
- data/spec/column_default_spec.rb +3 -13
- data/spec/migration_spec.rb +8 -12
- data/spec/schema_dumper_spec.rb +41 -43
- data/spec/spec_helper.rb +23 -5
- metadata +15 -9
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 14597121db8f2e284e7e613c7d0b9ceedd8f98a2cd9f085d019660c34c6ef5a5
|
|
4
|
+
data.tar.gz: 51e9dddb7157edf31da2ec10761b38c56cf1919669bcb97f4477044441e2209f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f0a7b837d44f903c22ad3286bded62e008fc2c892e4e3d41ae9e7fe1f02f862a3db7532d4a178fc82cf56421d25dcfa2caff9e739ca69cd70a6c3c2c81f5c000
|
|
7
|
+
data.tar.gz: ae111294c25323bb9bd70c1ffad4fbbc2f41e47a21ab47d86f5e576631ab97126f8092f23b1c32d96f07de61585d6f3a023c5e8bd8517361a668000afdb24628
|
data/.github/workflows/prs.yml
CHANGED
|
@@ -22,9 +22,12 @@ jobs:
|
|
|
22
22
|
- '2.5'
|
|
23
23
|
- '2.7'
|
|
24
24
|
- '3.0'
|
|
25
|
+
- '3.1'
|
|
25
26
|
activerecord:
|
|
26
27
|
- '5.2'
|
|
27
28
|
- '6.0'
|
|
29
|
+
- '6.1'
|
|
30
|
+
- '7.0'
|
|
28
31
|
db:
|
|
29
32
|
- sqlite3
|
|
30
33
|
- skip
|
|
@@ -33,6 +36,10 @@ jobs:
|
|
|
33
36
|
exclude:
|
|
34
37
|
- ruby: '3.0'
|
|
35
38
|
activerecord: '5.2'
|
|
39
|
+
- ruby: '3.1'
|
|
40
|
+
activerecord: '5.2'
|
|
41
|
+
- ruby: '2.5'
|
|
42
|
+
activerecord: '7.0'
|
|
36
43
|
- db: skip
|
|
37
44
|
dbversion: skip
|
|
38
45
|
include:
|
|
@@ -44,6 +51,10 @@ jobs:
|
|
|
44
51
|
activerecord: '6.0'
|
|
45
52
|
db: postgresql
|
|
46
53
|
dbversion: '9.6'
|
|
54
|
+
- ruby: '2.5'
|
|
55
|
+
activerecord: '6.1'
|
|
56
|
+
db: postgresql
|
|
57
|
+
dbversion: '9.6'
|
|
47
58
|
- ruby: '2.7'
|
|
48
59
|
activerecord: '5.2'
|
|
49
60
|
db: postgresql
|
|
@@ -52,10 +63,38 @@ jobs:
|
|
|
52
63
|
activerecord: '6.0'
|
|
53
64
|
db: postgresql
|
|
54
65
|
dbversion: '9.6'
|
|
66
|
+
- ruby: '2.7'
|
|
67
|
+
activerecord: '6.1'
|
|
68
|
+
db: postgresql
|
|
69
|
+
dbversion: '9.6'
|
|
70
|
+
- ruby: '2.7'
|
|
71
|
+
activerecord: '7.0'
|
|
72
|
+
db: postgresql
|
|
73
|
+
dbversion: '9.6'
|
|
74
|
+
- ruby: '3.0'
|
|
75
|
+
activerecord: '6.0'
|
|
76
|
+
db: postgresql
|
|
77
|
+
dbversion: '9.6'
|
|
78
|
+
- ruby: '3.0'
|
|
79
|
+
activerecord: '6.1'
|
|
80
|
+
db: postgresql
|
|
81
|
+
dbversion: '9.6'
|
|
55
82
|
- ruby: '3.0'
|
|
83
|
+
activerecord: '7.0'
|
|
84
|
+
db: postgresql
|
|
85
|
+
dbversion: '9.6'
|
|
86
|
+
- ruby: '3.1'
|
|
56
87
|
activerecord: '6.0'
|
|
57
88
|
db: postgresql
|
|
58
89
|
dbversion: '9.6'
|
|
90
|
+
- ruby: '3.1'
|
|
91
|
+
activerecord: '6.1'
|
|
92
|
+
db: postgresql
|
|
93
|
+
dbversion: '9.6'
|
|
94
|
+
- ruby: '3.1'
|
|
95
|
+
activerecord: '7.0'
|
|
96
|
+
db: postgresql
|
|
97
|
+
dbversion: '9.6'
|
|
59
98
|
env:
|
|
60
99
|
BUNDLE_GEMFILE: "${{ github.workspace }}/gemfiles/activerecord-${{ matrix.activerecord }}/Gemfile.${{ matrix.db }}"
|
|
61
100
|
POSTGRESQL_DB_HOST: 127.0.0.1
|
data/README.md
CHANGED
|
@@ -31,9 +31,17 @@ SchemaPlus::DefaultExpr is tested on:
|
|
|
31
31
|
<!-- These lines are auto-generated by schema_dev based on schema_dev.yml -->
|
|
32
32
|
* ruby **2.5** with activerecord **5.2**, using **sqlite3** and **postgresql:9.6**
|
|
33
33
|
* ruby **2.5** with activerecord **6.0**, using **sqlite3** and **postgresql:9.6**
|
|
34
|
+
* ruby **2.5** with activerecord **6.1**, using **sqlite3** and **postgresql:9.6**
|
|
34
35
|
* ruby **2.7** with activerecord **5.2**, using **sqlite3** and **postgresql:9.6**
|
|
35
36
|
* ruby **2.7** with activerecord **6.0**, using **sqlite3** and **postgresql:9.6**
|
|
37
|
+
* ruby **2.7** with activerecord **6.1**, using **sqlite3** and **postgresql:9.6**
|
|
38
|
+
* ruby **2.7** with activerecord **7.0**, using **sqlite3** and **postgresql:9.6**
|
|
36
39
|
* ruby **3.0** with activerecord **6.0**, using **sqlite3** and **postgresql:9.6**
|
|
40
|
+
* ruby **3.0** with activerecord **6.1**, using **sqlite3** and **postgresql:9.6**
|
|
41
|
+
* ruby **3.0** with activerecord **7.0**, using **sqlite3** and **postgresql:9.6**
|
|
42
|
+
* ruby **3.1** with activerecord **6.0**, using **sqlite3** and **postgresql:9.6**
|
|
43
|
+
* ruby **3.1** with activerecord **6.1**, using **sqlite3** and **postgresql:9.6**
|
|
44
|
+
* ruby **3.1** with activerecord **7.0**, using **sqlite3** and **postgresql:9.6**
|
|
37
45
|
|
|
38
46
|
<!-- SCHEMA_DEV: MATRIX - end -->
|
|
39
47
|
|
|
@@ -77,6 +85,7 @@ t.json :fields, default: { field1: 'a', field2: 'b' }
|
|
|
77
85
|
|
|
78
86
|
## History
|
|
79
87
|
|
|
88
|
+
* **1.0.1** - Add AR 6.1, 7.0 and Ruby 3.1
|
|
80
89
|
* **1.0.0** - Add AR 6.0, Ruby 3.0 and dropped AR < 5.2 and Ruby < 5.2
|
|
81
90
|
* **0.1.5** - Compatibility with AR 5.2.
|
|
82
91
|
* **0.1.4** - Compatibility with AR 5. Thanks to [@pedantic-git](https://github.com/pedantic-git)
|
data/schema_dev.yml
CHANGED
|
@@ -19,11 +19,11 @@ Gem::Specification.new do |gem|
|
|
|
19
19
|
|
|
20
20
|
gem.required_ruby_version = ">= 2.5.0"
|
|
21
21
|
|
|
22
|
-
gem.add_dependency "activerecord", ">= 5.2", "<
|
|
23
|
-
gem.add_dependency "schema_plus_core", '~> 3.
|
|
22
|
+
gem.add_dependency "activerecord", ">= 5.2", "< 7.1"
|
|
23
|
+
gem.add_dependency "schema_plus_core", '~> 3.1.0'
|
|
24
24
|
|
|
25
25
|
gem.add_development_dependency "bundler"
|
|
26
26
|
gem.add_development_dependency "rake", "~> 13.0"
|
|
27
27
|
gem.add_development_dependency "rspec", "~> 3.0"
|
|
28
|
-
gem.add_development_dependency "schema_dev", "~> 4.
|
|
28
|
+
gem.add_development_dependency "schema_dev", "~> 4.2.0"
|
|
29
29
|
end
|
data/spec/column_default_spec.rb
CHANGED
|
@@ -1,18 +1,8 @@
|
|
|
1
1
|
require 'spec_helper'
|
|
2
2
|
|
|
3
3
|
describe "Column definition" do
|
|
4
|
-
def stub_model(name, base = ActiveRecord::Base, &block)
|
|
5
|
-
klass = Class.new(base)
|
|
6
|
-
|
|
7
|
-
if block_given?
|
|
8
|
-
klass.instance_eval(&block)
|
|
9
|
-
end
|
|
10
|
-
|
|
11
|
-
stub_const(name, klass)
|
|
12
|
-
end
|
|
13
|
-
|
|
14
4
|
before(:each) do
|
|
15
|
-
|
|
5
|
+
apply_migration do
|
|
16
6
|
create_table :models, :force => true do |t|
|
|
17
7
|
end
|
|
18
8
|
end
|
|
@@ -125,8 +115,8 @@ describe "Column definition" do
|
|
|
125
115
|
private
|
|
126
116
|
|
|
127
117
|
def define_test_column(type, **options)
|
|
128
|
-
|
|
129
|
-
|
|
118
|
+
apply_migration do
|
|
119
|
+
create_table Model.table_name, :force => true do |t|
|
|
130
120
|
t.send type, :test_column, **options
|
|
131
121
|
t.integer :dummy
|
|
132
122
|
end
|
data/spec/migration_spec.rb
CHANGED
|
@@ -3,41 +3,37 @@ require 'spec_helper'
|
|
|
3
3
|
describe ActiveRecord::Migration do
|
|
4
4
|
|
|
5
5
|
before(:each) do
|
|
6
|
-
|
|
6
|
+
apply_migration do
|
|
7
7
|
create_table :posts, :force => true do |t|
|
|
8
8
|
t.string :content
|
|
9
9
|
end
|
|
10
10
|
end
|
|
11
|
-
class Post < ::ActiveRecord::Base ; end
|
|
12
11
|
end
|
|
13
12
|
|
|
14
13
|
context "when table is created" do
|
|
15
|
-
|
|
16
|
-
before(:each) do
|
|
17
|
-
@model = Post
|
|
18
|
-
end
|
|
14
|
+
let(:model) { stub_model('Post') }
|
|
19
15
|
|
|
20
16
|
it "should properly handle default values for booleans" do
|
|
21
17
|
expect {
|
|
22
|
-
recreate_table(
|
|
18
|
+
recreate_table(model) do |t|
|
|
23
19
|
t.boolean :bool, :default => true
|
|
24
20
|
end
|
|
25
21
|
}.to_not raise_error
|
|
26
|
-
expect(
|
|
22
|
+
expect(model.create.reload.bool).to be true
|
|
27
23
|
end
|
|
28
24
|
|
|
29
25
|
it "should properly handle default values for json (#195)", :postgresql => :only do
|
|
30
|
-
recreate_table(
|
|
26
|
+
recreate_table(model) do |t|
|
|
31
27
|
t.json :json, :default => {}
|
|
32
28
|
end
|
|
33
|
-
expect(
|
|
29
|
+
expect(model.create.reload.json).to eq({})
|
|
34
30
|
end
|
|
35
31
|
|
|
36
32
|
end
|
|
37
33
|
|
|
38
34
|
def recreate_table(model, opts={}, &block)
|
|
39
|
-
|
|
40
|
-
|
|
35
|
+
apply_migration do
|
|
36
|
+
create_table model.table_name, **opts.merge(:force => true), &block
|
|
41
37
|
end
|
|
42
38
|
model.reset_column_information
|
|
43
39
|
end
|
data/spec/schema_dumper_spec.rb
CHANGED
|
@@ -2,93 +2,92 @@ require 'spec_helper'
|
|
|
2
2
|
require 'stringio'
|
|
3
3
|
|
|
4
4
|
describe "Schema dump" do
|
|
5
|
+
let(:model) { stub_model('Post') }
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
connection.tables.each do |table| drop_table table, force: :cascade end
|
|
10
|
-
|
|
7
|
+
context "with date default", :postgresql => :only do
|
|
8
|
+
before do
|
|
9
|
+
apply_migration do
|
|
11
10
|
create_table :posts, :force => true do |t|
|
|
12
|
-
t.text :body
|
|
13
|
-
t.integer :user_id
|
|
14
|
-
t.integer :first_comment_id
|
|
15
|
-
t.string :string_no_default
|
|
16
|
-
t.integer :short_id
|
|
17
|
-
t.string :str_short
|
|
18
|
-
t.integer :integer_col
|
|
19
|
-
t.float :float_col
|
|
20
|
-
t.decimal :decimal_col
|
|
21
|
-
t.datetime :datetime_col
|
|
22
|
-
t.timestamp :timestamp_col
|
|
23
|
-
t.time :time_col
|
|
24
|
-
t.date :date_col
|
|
25
|
-
t.binary :binary_col
|
|
26
|
-
t.boolean :boolean_col
|
|
27
11
|
end
|
|
28
|
-
|
|
29
12
|
end
|
|
30
13
|
end
|
|
31
|
-
class ::Post < ActiveRecord::Base ; end
|
|
32
|
-
end
|
|
33
14
|
|
|
34
|
-
context "with date default", :postgresql => :only do
|
|
35
15
|
it "should dump the default hash expr as now()" do
|
|
36
|
-
with_additional_column
|
|
16
|
+
with_additional_column model, :posted_at, :datetime, :default => :now do
|
|
37
17
|
expect(dump_posts).to match(%r{t\.datetime\s+"posted_at",\s*(?:default:|:default\s*=>)\s*\{\s*(?:expr:|:expr\s*=>)\s*"now\(\)"\s*\}\s*$})
|
|
38
18
|
end
|
|
39
19
|
end
|
|
40
20
|
|
|
41
21
|
it "should dump the default hash expr as CURRENT_TIMESTAMP" do
|
|
42
|
-
with_additional_column
|
|
22
|
+
with_additional_column model, :posted_at, :datetime, :default => { :expr => 'date \'2001-09-28\'' } do
|
|
43
23
|
expect(dump_posts).to match(%r{t\.datetime\s+"posted_at",\s*(?:default:|:default\s*=>).*2001-09-28.*})
|
|
44
24
|
end
|
|
45
25
|
end
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
context 'with a complex expression', postgresql: :only do
|
|
29
|
+
before do
|
|
30
|
+
apply_migration do
|
|
31
|
+
create_table :posts, :force => true do |t|
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
46
35
|
|
|
47
36
|
it "can dump a complex default expression" do
|
|
48
|
-
with_additional_column
|
|
37
|
+
with_additional_column model, :name, :string, :default => { :expr => 'substring(random()::text from 3 for 6)' } do
|
|
49
38
|
expect(dump_posts).to match(%r{t\.string\s+"name",\s*(?:default:|:default\s*=>)\s*{\s*(?:expr:|:expr\s*=>)\s*"\\"substring\\"\(\(random\(\)\)::text, 3, 6\)"\s*}})
|
|
50
39
|
end
|
|
51
40
|
end
|
|
52
41
|
end
|
|
53
42
|
|
|
54
43
|
context "with date default", :sqlite3 => :only do
|
|
44
|
+
before do
|
|
45
|
+
apply_migration do
|
|
46
|
+
create_table :posts, :force => true do |t|
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
|
|
55
51
|
it "should dump the default hash expr as now" do
|
|
56
|
-
with_additional_column
|
|
57
|
-
expect(dump_posts).to match(%r{t\.datetime\s+"posted_at",\s*(default:|:default\s*=>)\s*\{\s*(?:expr:|:expr\s*=>)\s*"\(DATETIME\('now'\)\)"\s*\}})
|
|
52
|
+
with_additional_column model, :posted_at, :datetime, :default => :now do
|
|
53
|
+
expect(dump_posts).to match(%r{t\.datetime\s+"posted_at",\s*(default:|:default\s*=>)\s*\{\s*(?:expr:|:expr\s*=>)\s*"\(?DATETIME\('now'\)\)?"\s*\}})
|
|
58
54
|
end
|
|
59
55
|
end
|
|
60
56
|
|
|
61
57
|
it "should dump the default hash expr string as now" do
|
|
62
|
-
with_additional_column
|
|
63
|
-
expect(dump_posts).to match(%r{t\.datetime\s+"posted_at",\s*(default:|:default\s*=>)\s*\{\s*(?:expr:|:expr\s*=>)\s*"\(DATETIME\('now'\)\)"\s*\}})
|
|
58
|
+
with_additional_column model, :posted_at, :datetime, :default => { :expr => "(DATETIME('now'))" } do
|
|
59
|
+
expect(dump_posts).to match(%r{t\.datetime\s+"posted_at",\s*(default:|:default\s*=>)\s*\{\s*(?:expr:|:expr\s*=>)\s*"\(?DATETIME\('now'\)\)?"\s*\}})
|
|
64
60
|
end
|
|
65
61
|
end
|
|
66
62
|
|
|
67
63
|
it "should dump the default value normally" do
|
|
68
|
-
with_additional_column
|
|
64
|
+
with_additional_column model, :posted_at, :string, :default => "now" do
|
|
69
65
|
expect(dump_posts).to match(%r{t\.string\s*"posted_at",\s*(?:default:|:default\s*=>)\s*"now"})
|
|
70
66
|
end
|
|
71
67
|
end
|
|
72
68
|
end
|
|
73
69
|
|
|
74
70
|
it "should leave out :default when default was changed to null" do
|
|
75
|
-
|
|
76
|
-
|
|
71
|
+
apply_migration do
|
|
72
|
+
create_table :posts, :force => true do |t|
|
|
73
|
+
t.datetime :date_column, default: { expr: :now }
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
change_column_default :posts, :date_column, nil
|
|
77
77
|
end
|
|
78
|
-
|
|
79
|
-
# make sure the full line doesn't have 'default' in it.
|
|
80
|
-
expect(dump_posts).to match(%r{t\.string\s+"string_no_default"\s*(,\s*limit:\s*\d+)?$})
|
|
78
|
+
expect(dump_posts).to match(%r{t\.datetime\s+"date_column"$})
|
|
81
79
|
end
|
|
82
80
|
|
|
83
81
|
protected
|
|
82
|
+
|
|
84
83
|
def to_regexp(string)
|
|
85
84
|
Regexp.new(Regexp.escape(string))
|
|
86
85
|
end
|
|
87
86
|
|
|
88
87
|
def with_additional_column(model, column_name, column_type, options)
|
|
89
|
-
table_columns = model.columns.reject{|column| column.name == 'id'}
|
|
90
|
-
|
|
91
|
-
|
|
88
|
+
table_columns = model.columns.reject { |column| column.name == 'id' }
|
|
89
|
+
apply_migration do
|
|
90
|
+
create_table model.table_name, :force => true do |t|
|
|
92
91
|
table_columns.each do |column|
|
|
93
92
|
t.column column.name, column.type, :default => column.default
|
|
94
93
|
end
|
|
@@ -98,8 +97,8 @@ describe "Schema dump" do
|
|
|
98
97
|
yield
|
|
99
98
|
end
|
|
100
99
|
|
|
101
|
-
def dump_schema(opts={})
|
|
102
|
-
stream
|
|
100
|
+
def dump_schema(opts = {})
|
|
101
|
+
stream = StringIO.new
|
|
103
102
|
ActiveRecord::SchemaDumper.ignore_tables = Array.wrap(opts[:ignore]) || []
|
|
104
103
|
ActiveRecord::SchemaDumper.dump(ActiveRecord::Base.connection, stream)
|
|
105
104
|
stream.string
|
|
@@ -110,4 +109,3 @@ describe "Schema dump" do
|
|
|
110
109
|
end
|
|
111
110
|
|
|
112
111
|
end
|
|
113
|
-
|
data/spec/spec_helper.rb
CHANGED
|
@@ -15,18 +15,36 @@ Dir[File.dirname(__FILE__) + "/support/**/*.rb"].each {|f| require f}
|
|
|
15
15
|
|
|
16
16
|
RSpec.configure do |config|
|
|
17
17
|
config.warnings = true
|
|
18
|
+
|
|
19
|
+
config.around do |example|
|
|
20
|
+
begin
|
|
21
|
+
example.run
|
|
22
|
+
ensure
|
|
23
|
+
apply_migration do
|
|
24
|
+
ActiveRecord::Base.connection.tables.each do |table|
|
|
25
|
+
drop_table table, force: :cascade
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
18
30
|
end
|
|
19
31
|
|
|
20
|
-
def
|
|
32
|
+
def stub_model(name, base = ActiveRecord::Base, &block)
|
|
33
|
+
klass = Class.new(base)
|
|
34
|
+
|
|
35
|
+
if block_given?
|
|
36
|
+
klass.instance_eval(&block)
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
stub_const(name, klass)
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
def apply_migration(&block)
|
|
21
43
|
ActiveRecord::Migration.suppress_messages do
|
|
22
44
|
ActiveRecord::Schema.define do
|
|
23
|
-
connection.tables.each do |table|
|
|
24
|
-
drop_table table, force: :cascade
|
|
25
|
-
end
|
|
26
45
|
instance_eval &block
|
|
27
46
|
end
|
|
28
47
|
end
|
|
29
48
|
end
|
|
30
49
|
|
|
31
|
-
|
|
32
50
|
SimpleCov.command_name "[ruby#{RUBY_VERSION}-activerecord#{::ActiveRecord.version}-#{ActiveRecord::Base.connection.adapter_name}]"
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: schema_plus_default_expr
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- ronen barzel
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-
|
|
11
|
+
date: 2022-06-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activerecord
|
|
@@ -19,7 +19,7 @@ dependencies:
|
|
|
19
19
|
version: '5.2'
|
|
20
20
|
- - "<"
|
|
21
21
|
- !ruby/object:Gem::Version
|
|
22
|
-
version: '
|
|
22
|
+
version: '7.1'
|
|
23
23
|
type: :runtime
|
|
24
24
|
prerelease: false
|
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -29,21 +29,21 @@ dependencies:
|
|
|
29
29
|
version: '5.2'
|
|
30
30
|
- - "<"
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
|
-
version: '
|
|
32
|
+
version: '7.1'
|
|
33
33
|
- !ruby/object:Gem::Dependency
|
|
34
34
|
name: schema_plus_core
|
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
|
36
36
|
requirements:
|
|
37
37
|
- - "~>"
|
|
38
38
|
- !ruby/object:Gem::Version
|
|
39
|
-
version: 3.
|
|
39
|
+
version: 3.1.0
|
|
40
40
|
type: :runtime
|
|
41
41
|
prerelease: false
|
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
|
43
43
|
requirements:
|
|
44
44
|
- - "~>"
|
|
45
45
|
- !ruby/object:Gem::Version
|
|
46
|
-
version: 3.
|
|
46
|
+
version: 3.1.0
|
|
47
47
|
- !ruby/object:Gem::Dependency
|
|
48
48
|
name: bundler
|
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -92,14 +92,14 @@ dependencies:
|
|
|
92
92
|
requirements:
|
|
93
93
|
- - "~>"
|
|
94
94
|
- !ruby/object:Gem::Version
|
|
95
|
-
version:
|
|
95
|
+
version: 4.2.0
|
|
96
96
|
type: :development
|
|
97
97
|
prerelease: false
|
|
98
98
|
version_requirements: !ruby/object:Gem::Requirement
|
|
99
99
|
requirements:
|
|
100
100
|
- - "~>"
|
|
101
101
|
- !ruby/object:Gem::Version
|
|
102
|
-
version:
|
|
102
|
+
version: 4.2.0
|
|
103
103
|
description:
|
|
104
104
|
email:
|
|
105
105
|
- ronen@barzel.org
|
|
@@ -121,6 +121,12 @@ files:
|
|
|
121
121
|
- gemfiles/activerecord-6.0/Gemfile.base
|
|
122
122
|
- gemfiles/activerecord-6.0/Gemfile.postgresql
|
|
123
123
|
- gemfiles/activerecord-6.0/Gemfile.sqlite3
|
|
124
|
+
- gemfiles/activerecord-6.1/Gemfile.base
|
|
125
|
+
- gemfiles/activerecord-6.1/Gemfile.postgresql
|
|
126
|
+
- gemfiles/activerecord-6.1/Gemfile.sqlite3
|
|
127
|
+
- gemfiles/activerecord-7.0/Gemfile.base
|
|
128
|
+
- gemfiles/activerecord-7.0/Gemfile.postgresql
|
|
129
|
+
- gemfiles/activerecord-7.0/Gemfile.sqlite3
|
|
124
130
|
- lib/schema_plus/default_expr.rb
|
|
125
131
|
- lib/schema_plus/default_expr/active_record/connection_adapters/abstract_adapter.rb
|
|
126
132
|
- lib/schema_plus/default_expr/active_record/connection_adapters/column.rb
|
|
@@ -154,7 +160,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
154
160
|
- !ruby/object:Gem::Version
|
|
155
161
|
version: '0'
|
|
156
162
|
requirements: []
|
|
157
|
-
rubygems_version: 3.
|
|
163
|
+
rubygems_version: 3.1.6
|
|
158
164
|
signing_key:
|
|
159
165
|
specification_version: 4
|
|
160
166
|
summary: Extends ActiveRecord migrations to allow an SQL expression for the default
|