mergration 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dcd8dfe08a32d5a579275c92031b1b6d40ba49875b4a724b65aac67eeb3c3d38
4
- data.tar.gz: 87919a9cdef53254da11721bae8d9961be546dda92de922eaf9c84ab1eb37792
3
+ metadata.gz: fd732f1bcb32987e3b42869a21d70c92d98297512af5216bcb0354bf544e52a5
4
+ data.tar.gz: b99725406b6da2e283c5cc7a1c892bdf0f043a785d4dbbec2d9aa5c99f66081a
5
5
  SHA512:
6
- metadata.gz: 4ab0cf6c0cb48719ca283f52f7cc685d9cf161dc4d0be2103c05dae4b869b14edf513a54edce45bc1f068e15085aecb7e3a83965fd7749e396157d12762b105f
7
- data.tar.gz: b33b9b25df17f8607a68d04e956fbd2848f6d9ab63d6ab17ba19027e591635dc696ba6d7448d52049a5f363c65f5d72f85ef351a946863afd8dbdef60d786acc
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 mergtaion:install`.
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 'kramdown-mermaid'
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 PK
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 PK
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/[USERNAME]/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/[USERNAME]/mergration/blob/master/CODE_OF_CONDUCT.md).
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/[USERNAME]/mergration/blob/master/CODE_OF_CONDUCT.md).
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).
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Mergration
4
- VERSION = '0.1.0'
4
+ VERSION = '0.1.1'
5
5
  end
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.0
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://rubygems.org/gems/mergration
176
+ homepage: https://github.com/38tter/mergration
177
177
  licenses:
178
178
  - MIT
179
179
  metadata:
180
- homepage_uri: https://rubygems.org/gems/mergration
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: