mergration 0.1.0 → 0.1.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/README.md +7 -8
- data/lib/mergration/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fd732f1bcb32987e3b42869a21d70c92d98297512af5216bcb0354bf544e52a5
|
|
4
|
+
data.tar.gz: b99725406b6da2e283c5cc7a1c892bdf0f043a785d4dbbec2d9aa5c99f66081a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 41d2a99c01d02b9e9162b0b19b3654347c1bc33e01765c3b312134aaa150071cc983b8330d4194888299dc6fba43d5673e014d9cf8914335b31892ea855225f2
|
|
7
|
+
data.tar.gz: aa019bc2fdd2ed3dc4762998df5c0e54a77fb6d7d37aee1cd5bf5e4f7e43090daafbc408cceed080af6192f63d287f2f4998bd630fb53355f7f96e75f34efe86
|
data/README.md
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
# Mergration
|
|
2
2
|
|
|
3
3
|
This gem generates migration files from markdown files.
|
|
4
|
-
Entity and Relations can be written in [Mermaid.js syntax](https://mermaid.js.org/syntax/entityRelationshipDiagram.html) on markdown files, and migration files will be generated by running `bin/rails generate
|
|
4
|
+
Entity and Relations can be written in [Mermaid.js syntax](https://mermaid.js.org/syntax/entityRelationshipDiagram.html) on markdown files, and migration files will be generated by running `bin/rails generate mergraion:install`.
|
|
5
5
|
|
|
6
6
|
## Installation
|
|
7
7
|
|
|
8
8
|
Add this line to your application's Gemfile:
|
|
9
9
|
|
|
10
10
|
```ruby
|
|
11
|
-
gem '
|
|
12
|
-
gem 'mergration', git: 'git@github.com:38tter/mergration.git'
|
|
11
|
+
gem 'mergration'
|
|
13
12
|
```
|
|
14
13
|
|
|
15
14
|
And then execute:
|
|
@@ -34,7 +33,7 @@ erDiagram %% write ome comment here
|
|
|
34
33
|
date start_on
|
|
35
34
|
date end_on
|
|
36
35
|
datetime disabled_at
|
|
37
|
-
references account
|
|
36
|
+
references account FK
|
|
38
37
|
references user FK
|
|
39
38
|
}
|
|
40
39
|
```
|
|
@@ -49,7 +48,7 @@ erDiagram %% write ome comment here
|
|
|
49
48
|
date start_on
|
|
50
49
|
date end_on
|
|
51
50
|
datetime disabled_at
|
|
52
|
-
references account
|
|
51
|
+
references account FK
|
|
53
52
|
references user FK
|
|
54
53
|
}
|
|
55
54
|
```
|
|
@@ -71,7 +70,7 @@ class CreateHogeSubscriptions < ActiveRecord::Migration[6.1]
|
|
|
71
70
|
t.date :start_on
|
|
72
71
|
t.date :end_on
|
|
73
72
|
t.datetime :disabled_at
|
|
74
|
-
t.references :account
|
|
73
|
+
t.references :account, foreign_key: true
|
|
75
74
|
t.references :user, foreign_key: true
|
|
76
75
|
|
|
77
76
|
t.timestamps
|
|
@@ -89,7 +88,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
|
89
88
|
|
|
90
89
|
## Contributing
|
|
91
90
|
|
|
92
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
|
91
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/38tter/mergration. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/38tter/mergration/blob/master/CODE_OF_CONDUCT.md).
|
|
93
92
|
|
|
94
93
|
## License
|
|
95
94
|
|
|
@@ -97,4 +96,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
|
|
|
97
96
|
|
|
98
97
|
## Code of Conduct
|
|
99
98
|
|
|
100
|
-
Everyone interacting in the Mergration project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/
|
|
99
|
+
Everyone interacting in the Mergration project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/38tter/mergration/blob/master/CODE_OF_CONDUCT.md).
|
data/lib/mergration/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mergration
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Seiya Miyata
|
|
@@ -173,11 +173,11 @@ files:
|
|
|
173
173
|
- lib/mergration.rb
|
|
174
174
|
- lib/mergration/parser.rb
|
|
175
175
|
- lib/mergration/version.rb
|
|
176
|
-
homepage: https://
|
|
176
|
+
homepage: https://github.com/38tter/mergration
|
|
177
177
|
licenses:
|
|
178
178
|
- MIT
|
|
179
179
|
metadata:
|
|
180
|
-
homepage_uri: https://
|
|
180
|
+
homepage_uri: https://github.com/38tter/mergration
|
|
181
181
|
source_code_uri: https://github.com/38tter/mergration
|
|
182
182
|
changelog_uri: https://github.com/38tter/mergration/blob/main/CHANGELOG.md
|
|
183
183
|
post_install_message:
|