typed_dag 2.0.1 → 2.0.2

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.
Files changed (73) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/lib/typed_dag/version.rb +1 -1
  4. metadata +3 -141
  5. data/spec/spec_helper.rb +0 -89
  6. data/spec/support/helpers.rb +0 -47
  7. data/spec/test_app/Rakefile +0 -6
  8. data/spec/test_app/app/assets/config/manifest.js +0 -4
  9. data/spec/test_app/app/assets/javascripts/application.js +0 -13
  10. data/spec/test_app/app/assets/javascripts/cable.js +0 -13
  11. data/spec/test_app/app/assets/stylesheets/application.css +0 -15
  12. data/spec/test_app/app/channels/application_cable/channel.rb +0 -4
  13. data/spec/test_app/app/channels/application_cable/connection.rb +0 -4
  14. data/spec/test_app/app/controllers/application_controller.rb +0 -3
  15. data/spec/test_app/app/helpers/application_helper.rb +0 -2
  16. data/spec/test_app/app/jobs/application_job.rb +0 -2
  17. data/spec/test_app/app/mailers/application_mailer.rb +0 -4
  18. data/spec/test_app/app/models/application_record.rb +0 -3
  19. data/spec/test_app/app/models/message.rb +0 -2
  20. data/spec/test_app/app/models/relation.rb +0 -2
  21. data/spec/test_app/app/views/layouts/application.html.erb +0 -14
  22. data/spec/test_app/app/views/layouts/mailer.html.erb +0 -13
  23. data/spec/test_app/app/views/layouts/mailer.text.erb +0 -1
  24. data/spec/test_app/bin/bundle +0 -3
  25. data/spec/test_app/bin/rails +0 -4
  26. data/spec/test_app/bin/rake +0 -4
  27. data/spec/test_app/bin/setup +0 -38
  28. data/spec/test_app/bin/update +0 -29
  29. data/spec/test_app/bin/yarn +0 -11
  30. data/spec/test_app/config.ru +0 -5
  31. data/spec/test_app/config/application.rb +0 -26
  32. data/spec/test_app/config/boot.rb +0 -5
  33. data/spec/test_app/config/cable.yml +0 -10
  34. data/spec/test_app/config/database.mysql.yml.travis +0 -9
  35. data/spec/test_app/config/database.postgresql.yml.travis +0 -9
  36. data/spec/test_app/config/database.yml +0 -23
  37. data/spec/test_app/config/environment.rb +0 -5
  38. data/spec/test_app/config/environments/development.rb +0 -54
  39. data/spec/test_app/config/environments/production.rb +0 -91
  40. data/spec/test_app/config/environments/test.rb +0 -42
  41. data/spec/test_app/config/initializers/application_controller_renderer.rb +0 -6
  42. data/spec/test_app/config/initializers/assets.rb +0 -14
  43. data/spec/test_app/config/initializers/backtrace_silencers.rb +0 -7
  44. data/spec/test_app/config/initializers/cookies_serializer.rb +0 -5
  45. data/spec/test_app/config/initializers/filter_parameter_logging.rb +0 -4
  46. data/spec/test_app/config/initializers/inflections.rb +0 -16
  47. data/spec/test_app/config/initializers/mime_types.rb +0 -4
  48. data/spec/test_app/config/initializers/typed_dag.rb +0 -12
  49. data/spec/test_app/config/initializers/wrap_parameters.rb +0 -14
  50. data/spec/test_app/config/locales/en.yml +0 -33
  51. data/spec/test_app/config/puma.rb +0 -56
  52. data/spec/test_app/config/routes.rb +0 -3
  53. data/spec/test_app/config/secrets.yml +0 -32
  54. data/spec/test_app/config/spring.rb +0 -6
  55. data/spec/test_app/db/development.sqlite3 +0 -0
  56. data/spec/test_app/db/migrate/20170831093433_create_nodes_and_endges.rb +0 -22
  57. data/spec/test_app/db/schema.rb +0 -35
  58. data/spec/test_app/db/test.sqlite3 +0 -0
  59. data/spec/test_app/log/development.log +0 -101
  60. data/spec/test_app/log/test.log +0 -0
  61. data/spec/test_app/package.json +0 -5
  62. data/spec/test_app/public/404.html +0 -67
  63. data/spec/test_app/public/422.html +0 -67
  64. data/spec/test_app/public/500.html +0 -66
  65. data/spec/test_app/public/apple-touch-icon-precomposed.png +0 -0
  66. data/spec/test_app/public/apple-touch-icon.png +0 -0
  67. data/spec/test_app/public/favicon.ico +0 -0
  68. data/spec/typed_dag/configuration.rb +0 -92
  69. data/spec/typed_dag/edge_spec.rb +0 -578
  70. data/spec/typed_dag/node_spec.rb +0 -2178
  71. data/spec/typed_dag/sql/add_closure_spec.rb +0 -116
  72. data/spec/typed_dag/sql/truncate_closure_spec.rb +0 -112
  73. data/spec/typed_dag_spec.rb +0 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 68e6894733312f8d62be51c1f249a767890402cc
4
- data.tar.gz: b778e272530a806ec819024ce2a23597cfe1c0b6
3
+ metadata.gz: be1983f3f3663fca6096cedb4967bc29b8a72700
4
+ data.tar.gz: 3e3988050dac9d3e02bce00d94a335b7fd232a3f
5
5
  SHA512:
6
- metadata.gz: 4c9827091a6768cc1e449f25f5cb167bae7fc8d80039adaf7b4552e79b8c63d3a9d20db5761222efcdb0b547a72d2d77a2c505afc9d9a26f184c78702fda230c
7
- data.tar.gz: 73c1a4980d1c5e58ab6b09470f5bdac08241e6fe6bea9f9ffb9a2ac617b28d6130845b8bede5757f7413e08148f689b308a1ec8c047fae527b746f7973b6385e
6
+ metadata.gz: 15578eff98c3014a13bdf04420233b3eccbc7f5ffa3b7b9af54cce9546d23a474cf713299c50ac81862c3396887adad71e868246255a1840ce3d21196408297a
7
+ data.tar.gz: a33c762b8bd1940f9253920804cd7a5c0e2f916286e7ccb7e558df6df84aa0371ace212c13b7a001804c60958d0036ff4116bf48326bf0323928a9a6c193c0c0
data/README.md CHANGED
@@ -187,14 +187,14 @@ A migration to create such a table could look like this:
187
187
 
188
188
  # give the index a custom name to avoid running into length limitation when having a couple of columns
189
189
  # in the index
190
- add_index :edges, [:hierarchy, :reference], name: `index_on_type_columns`
190
+ add_index :edges, [:from_id, :to_id, :hierarchy, :reference], name: `index_on_type_columns`, unique: true
191
191
  add_index :edges, :count, where: 'count = 0'
192
192
  end
193
193
  ```
194
194
 
195
195
  The table can also have additional columns. They will not interfere with TypedDag.
196
196
 
197
- Which indices to use will depend on the data added but having an index over all the type columns is a good start. A partial index on count speeds up deleting edges while also being very lightweight to maintain.
197
+ Which indices to use will depend on the data added but a unique index covering the foreign keys to the nodes as well as the columns counting the hops per type is required. A partial index on count speeds up deleting edges while also being very lightweight to maintain. Please note that [MySql does not support partial indices](https://dev.mysql.com/doc/refman/5.7/en/create-index.html).
198
198
 
199
199
  There are no requirements on the node's table.
200
200
 
@@ -1,3 +1,3 @@
1
1
  module TypedDag
2
- VERSION = '2.0.1'.freeze
2
+ VERSION = '2.0.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: typed_dag
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenProject GmbH
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-11 00:00:00.000000000 Z
11
+ date: 2018-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -106,75 +106,6 @@ files:
106
106
  - lib/typed_dag/sql/select_closure.rb
107
107
  - lib/typed_dag/sql/truncate_closure.rb
108
108
  - lib/typed_dag/version.rb
109
- - spec/spec_helper.rb
110
- - spec/support/helpers.rb
111
- - spec/test_app/Rakefile
112
- - spec/test_app/app/assets/config/manifest.js
113
- - spec/test_app/app/assets/javascripts/application.js
114
- - spec/test_app/app/assets/javascripts/cable.js
115
- - spec/test_app/app/assets/stylesheets/application.css
116
- - spec/test_app/app/channels/application_cable/channel.rb
117
- - spec/test_app/app/channels/application_cable/connection.rb
118
- - spec/test_app/app/controllers/application_controller.rb
119
- - spec/test_app/app/helpers/application_helper.rb
120
- - spec/test_app/app/jobs/application_job.rb
121
- - spec/test_app/app/mailers/application_mailer.rb
122
- - spec/test_app/app/models/application_record.rb
123
- - spec/test_app/app/models/message.rb
124
- - spec/test_app/app/models/relation.rb
125
- - spec/test_app/app/views/layouts/application.html.erb
126
- - spec/test_app/app/views/layouts/mailer.html.erb
127
- - spec/test_app/app/views/layouts/mailer.text.erb
128
- - spec/test_app/bin/bundle
129
- - spec/test_app/bin/rails
130
- - spec/test_app/bin/rake
131
- - spec/test_app/bin/setup
132
- - spec/test_app/bin/update
133
- - spec/test_app/bin/yarn
134
- - spec/test_app/config.ru
135
- - spec/test_app/config/application.rb
136
- - spec/test_app/config/boot.rb
137
- - spec/test_app/config/cable.yml
138
- - spec/test_app/config/database.mysql.yml.travis
139
- - spec/test_app/config/database.postgresql.yml.travis
140
- - spec/test_app/config/database.yml
141
- - spec/test_app/config/environment.rb
142
- - spec/test_app/config/environments/development.rb
143
- - spec/test_app/config/environments/production.rb
144
- - spec/test_app/config/environments/test.rb
145
- - spec/test_app/config/initializers/application_controller_renderer.rb
146
- - spec/test_app/config/initializers/assets.rb
147
- - spec/test_app/config/initializers/backtrace_silencers.rb
148
- - spec/test_app/config/initializers/cookies_serializer.rb
149
- - spec/test_app/config/initializers/filter_parameter_logging.rb
150
- - spec/test_app/config/initializers/inflections.rb
151
- - spec/test_app/config/initializers/mime_types.rb
152
- - spec/test_app/config/initializers/typed_dag.rb
153
- - spec/test_app/config/initializers/wrap_parameters.rb
154
- - spec/test_app/config/locales/en.yml
155
- - spec/test_app/config/puma.rb
156
- - spec/test_app/config/routes.rb
157
- - spec/test_app/config/secrets.yml
158
- - spec/test_app/config/spring.rb
159
- - spec/test_app/db/development.sqlite3
160
- - spec/test_app/db/migrate/20170831093433_create_nodes_and_endges.rb
161
- - spec/test_app/db/schema.rb
162
- - spec/test_app/db/test.sqlite3
163
- - spec/test_app/log/development.log
164
- - spec/test_app/log/test.log
165
- - spec/test_app/package.json
166
- - spec/test_app/public/404.html
167
- - spec/test_app/public/422.html
168
- - spec/test_app/public/500.html
169
- - spec/test_app/public/apple-touch-icon-precomposed.png
170
- - spec/test_app/public/apple-touch-icon.png
171
- - spec/test_app/public/favicon.ico
172
- - spec/typed_dag/configuration.rb
173
- - spec/typed_dag/edge_spec.rb
174
- - spec/typed_dag/node_spec.rb
175
- - spec/typed_dag/sql/add_closure_spec.rb
176
- - spec/typed_dag/sql/truncate_closure_spec.rb
177
- - spec/typed_dag_spec.rb
178
109
  homepage: https://github.com/opf/typed_dag
179
110
  licenses:
180
111
  - MIT
@@ -199,73 +130,4 @@ rubygems_version: 2.6.13
199
130
  signing_key:
200
131
  specification_version: 4
201
132
  summary: Directed acyclic graphs for rails model with typed edges.
202
- test_files:
203
- - spec/spec_helper.rb
204
- - spec/support/helpers.rb
205
- - spec/test_app/app/assets/config/manifest.js
206
- - spec/test_app/app/assets/javascripts/application.js
207
- - spec/test_app/app/assets/javascripts/cable.js
208
- - spec/test_app/app/assets/stylesheets/application.css
209
- - spec/test_app/app/channels/application_cable/channel.rb
210
- - spec/test_app/app/channels/application_cable/connection.rb
211
- - spec/test_app/app/controllers/application_controller.rb
212
- - spec/test_app/app/helpers/application_helper.rb
213
- - spec/test_app/app/jobs/application_job.rb
214
- - spec/test_app/app/mailers/application_mailer.rb
215
- - spec/test_app/app/models/application_record.rb
216
- - spec/test_app/app/models/message.rb
217
- - spec/test_app/app/models/relation.rb
218
- - spec/test_app/app/views/layouts/application.html.erb
219
- - spec/test_app/app/views/layouts/mailer.html.erb
220
- - spec/test_app/app/views/layouts/mailer.text.erb
221
- - spec/test_app/bin/bundle
222
- - spec/test_app/bin/rails
223
- - spec/test_app/bin/rake
224
- - spec/test_app/bin/setup
225
- - spec/test_app/bin/update
226
- - spec/test_app/bin/yarn
227
- - spec/test_app/config/application.rb
228
- - spec/test_app/config/boot.rb
229
- - spec/test_app/config/cable.yml
230
- - spec/test_app/config/database.mysql.yml.travis
231
- - spec/test_app/config/database.postgresql.yml.travis
232
- - spec/test_app/config/database.yml
233
- - spec/test_app/config/environment.rb
234
- - spec/test_app/config/environments/development.rb
235
- - spec/test_app/config/environments/production.rb
236
- - spec/test_app/config/environments/test.rb
237
- - spec/test_app/config/initializers/application_controller_renderer.rb
238
- - spec/test_app/config/initializers/assets.rb
239
- - spec/test_app/config/initializers/backtrace_silencers.rb
240
- - spec/test_app/config/initializers/cookies_serializer.rb
241
- - spec/test_app/config/initializers/filter_parameter_logging.rb
242
- - spec/test_app/config/initializers/inflections.rb
243
- - spec/test_app/config/initializers/mime_types.rb
244
- - spec/test_app/config/initializers/typed_dag.rb
245
- - spec/test_app/config/initializers/wrap_parameters.rb
246
- - spec/test_app/config/locales/en.yml
247
- - spec/test_app/config/puma.rb
248
- - spec/test_app/config/routes.rb
249
- - spec/test_app/config/secrets.yml
250
- - spec/test_app/config/spring.rb
251
- - spec/test_app/config.ru
252
- - spec/test_app/db/development.sqlite3
253
- - spec/test_app/db/migrate/20170831093433_create_nodes_and_endges.rb
254
- - spec/test_app/db/schema.rb
255
- - spec/test_app/db/test.sqlite3
256
- - spec/test_app/log/development.log
257
- - spec/test_app/log/test.log
258
- - spec/test_app/package.json
259
- - spec/test_app/public/404.html
260
- - spec/test_app/public/422.html
261
- - spec/test_app/public/500.html
262
- - spec/test_app/public/apple-touch-icon-precomposed.png
263
- - spec/test_app/public/apple-touch-icon.png
264
- - spec/test_app/public/favicon.ico
265
- - spec/test_app/Rakefile
266
- - spec/typed_dag/configuration.rb
267
- - spec/typed_dag/edge_spec.rb
268
- - spec/typed_dag/node_spec.rb
269
- - spec/typed_dag/sql/add_closure_spec.rb
270
- - spec/typed_dag/sql/truncate_closure_spec.rb
271
- - spec/typed_dag_spec.rb
133
+ test_files: []
@@ -1,89 +0,0 @@
1
- # This file was generated by the `rspec --init` command. Conventionally, all
2
- # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
3
- # The generated `.rspec` file contains `--require spec_helper` which will cause
4
- # this file to always be loaded, without a need to explicitly require it in any
5
- # files.
6
- #
7
- # Given that it is always loaded, you are encouraged to keep this file as
8
- # light-weight as possible. Requiring heavyweight dependencies from this file
9
- # will add to the boot time of your test suite on EVERY test run, even for an
10
- # individual file that may not need all of that loaded. Instead, consider making
11
- # a separate helper file that requires the additional dependencies and performs
12
- # the additional setup, and require it from the spec files that actually need
13
- # it.
14
- #
15
- # The `.rspec` file also contains a few flags that are not defaults but that
16
- # users commonly want.
17
- #
18
- # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
19
-
20
- ENV['RAILS_ENV'] ||= 'test'
21
-
22
- require File.expand_path('../test_app/config/environment.rb', __FILE__)
23
- require 'rspec/rails'
24
-
25
- Rails.backtrace_cleaner.remove_silencers!
26
-
27
- # Load support files
28
- Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
29
-
30
- RSpec.configure do |config|
31
- # rspec-expectations config goes here. You can use an alternate
32
- # assertion/expectation library such as wrong or the stdlib/minitest
33
- # assertions if you prefer.
34
- config.expect_with :rspec do |expectations|
35
- # This option will default to `true` in RSpec 4. It makes the `description`
36
- # and `failure_message` of custom matchers include text for helper methods
37
- # defined using `chain`, e.g.:
38
- # be_bigger_than(2).and_smaller_than(4).description
39
- # # => "be bigger than 2 and smaller than 4"
40
- # ...rather than:
41
- # # => "be bigger than 2"
42
- expectations.include_chain_clauses_in_custom_matcher_descriptions = true
43
- end
44
-
45
- # rspec-mocks config goes here. You can use an alternate test double
46
- # library (such as bogus or mocha) by changing the `mock_with` option here.
47
- config.mock_with :rspec do |mocks|
48
- # Prevents you from mocking or stubbing a method that does not exist on
49
- # a real object. This is generally recommended, and will default to
50
- # `true` in RSpec 4.
51
- mocks.verify_partial_doubles = true
52
- end
53
-
54
- # This option will default to `:apply_to_host_groups` in RSpec 4 (and will
55
- # have no way to turn it off -- the option exists only for backwards
56
- # compatibility in RSpec 3). It causes shared context metadata to be
57
- # inherited by the metadata hash of host groups and examples, rather than
58
- # triggering implicit auto-inclusion in groups with matching metadata.
59
- config.shared_context_metadata_behavior = :apply_to_host_groups
60
-
61
- config.use_transactional_fixtures = true
62
-
63
- # Many RSpec users commonly either run the entire suite or an individual
64
- # file, and it's useful to allow more verbose output when running an
65
- # individual spec file.
66
- if config.files_to_run.one?
67
- # Use the documentation formatter for detailed output,
68
- # unless a formatter has already been configured
69
- # (e.g. via a command-line flag).
70
- config.default_formatter = 'doc'
71
- end
72
-
73
- # Run specs in random order to surface order dependencies. If you find an
74
- # order dependency and want to debug it, you can fix the order by providing
75
- # the seed, which is printed after each run.
76
- # --seed 1234
77
- config.order = :random
78
-
79
- # Seed global randomization in this process using the `--seed` CLI option.
80
- # Setting this allows you to use `--seed` to deterministically reproduce
81
- # test failures related to randomization by passing the same `--seed` value
82
- # as the one that triggered the failure.
83
- Kernel.srand config.seed
84
-
85
- # Print the 10 slowest examples and example groups at the
86
- # end of the spec run, to help surface which specs are running
87
- # particularly slow.
88
- config.profile_examples = 10
89
- end
@@ -1,47 +0,0 @@
1
- module TypedDag
2
- module Specs
3
- module Helpers
4
- def from_one_or_array(message)
5
- if from_limit == 1
6
- message
7
- else
8
- Array(message)
9
- end
10
- end
11
-
12
- def message_with_from(text, parent)
13
- if from_limit == 1
14
- Message.create text: text, from => from_one_or_array(parent)
15
- else
16
- m = Message.create text: text
17
- m.send("#{from}=", from_one_or_array(parent))
18
- m
19
- end
20
- end
21
-
22
- def create_message_with_invalidated_by(text, invalidated_by)
23
- message = Message.create text: text
24
- message.invalidated_by = Array(invalidated_by)
25
- message
26
- end
27
-
28
- def to_attribute_array(relations)
29
- relations.map do |r|
30
- [r.from.text,
31
- r.to.text,
32
- r.hierarchy,
33
- r.invalidate,
34
- r.count]
35
- end
36
- end
37
-
38
- def mysql_db?
39
- ActiveRecord::Base.connection.adapter_name == 'Mysql2'
40
- end
41
-
42
- def harmonize_string(string)
43
- string.squish.gsub('( ', '(').gsub(' )', ')')
44
- end
45
- end
46
- end
47
- end
@@ -1,6 +0,0 @@
1
- # Add your own tasks in files placed in lib/tasks ending in .rake,
2
- # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
-
4
- require_relative 'config/application'
5
-
6
- Rails.application.load_tasks
@@ -1,4 +0,0 @@
1
-
2
- //= link_tree ../images
3
- //= link_directory ../javascripts .js
4
- //= link_directory ../stylesheets .css
@@ -1,13 +0,0 @@
1
- // This is a manifest file that'll be compiled into application.js, which will include all the files
2
- // listed below.
3
- //
4
- // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
- // or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
6
- //
7
- // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
- // compiled file. JavaScript code in this file should be added after the last require_* statement.
9
- //
10
- // Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
11
- // about supported directives.
12
- //
13
- //= require_tree .
@@ -1,13 +0,0 @@
1
- // Action Cable provides the framework to deal with WebSockets in Rails.
2
- // You can generate new channels where WebSocket features live using the `rails generate channel` command.
3
- //
4
- //= require action_cable
5
- //= require_self
6
- //= require_tree ./channels
7
-
8
- (function() {
9
- this.App || (this.App = {});
10
-
11
- App.cable = ActionCable.createConsumer();
12
-
13
- }).call(this);
@@ -1,15 +0,0 @@
1
- /*
2
- * This is a manifest file that'll be compiled into application.css, which will include all the files
3
- * listed below.
4
- *
5
- * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
- * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
7
- *
8
- * You're free to add application-wide styles to this file and they'll appear at the bottom of the
9
- * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
10
- * files in this directory. Styles in this file should be added after the last require_* statement.
11
- * It is generally better to create a new file per style scope.
12
- *
13
- *= require_tree .
14
- *= require_self
15
- */
@@ -1,4 +0,0 @@
1
- module ApplicationCable
2
- class Channel < ActionCable::Channel::Base
3
- end
4
- end
@@ -1,4 +0,0 @@
1
- module ApplicationCable
2
- class Connection < ActionCable::Connection::Base
3
- end
4
- end
@@ -1,3 +0,0 @@
1
- class ApplicationController < ActionController::Base
2
- protect_from_forgery with: :exception
3
- end
@@ -1,2 +0,0 @@
1
- module ApplicationHelper
2
- end
@@ -1,2 +0,0 @@
1
- class ApplicationJob < ActiveJob::Base
2
- end
@@ -1,4 +0,0 @@
1
- class ApplicationMailer < ActionMailer::Base
2
- default from: 'from@example.com'
3
- layout 'mailer'
4
- end
@@ -1,3 +0,0 @@
1
- class ApplicationRecord < ActiveRecord::Base
2
- self.abstract_class = true
3
- end
@@ -1,2 +0,0 @@
1
- class Message < ActiveRecord::Base
2
- end
@@ -1,2 +0,0 @@
1
- class Relation < ActiveRecord::Base
2
- end
@@ -1,14 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>TestApp</title>
5
- <%= csrf_meta_tags %>
6
-
7
- <%= stylesheet_link_tag 'application', media: 'all' %>
8
- <%= javascript_include_tag 'application' %>
9
- </head>
10
-
11
- <body>
12
- <%= yield %>
13
- </body>
14
- </html>