amoeba 3.4.0 → 3.4.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/CHANGELOG.md +7 -0
- data/lib/amoeba/cloner.rb +2 -0
- data/lib/amoeba/macros.rb +1 -0
- data/lib/amoeba/version.rb +1 -1
- metadata +14 -93
- data/.cane +0 -4
- data/.github/workflows/activerecord_head.yml +0 -26
- data/.github/workflows/jruby.yml +0 -30
- data/.github/workflows/rspec.yml +0 -49
- data/.github/workflows/rubocop.yml +0 -20
- data/.gitignore +0 -10
- data/.rspec +0 -2
- data/.rubocop.yml +0 -21
- data/.rubocop_todo.yml +0 -149
- data/Appraisals +0 -69
- data/Gemfile +0 -16
- data/Rakefile +0 -8
- data/amoeba.gemspec +0 -40
- data/defaults.reek +0 -11
- data/gemfiles/activerecord_6.1.gemfile +0 -27
- data/gemfiles/activerecord_7.0.gemfile +0 -22
- data/gemfiles/activerecord_7.1.gemfile +0 -21
- data/gemfiles/activerecord_8.0.gemfile +0 -21
- data/gemfiles/activerecord_8.1.gemfile +0 -21
- data/gemfiles/activerecord_head.gemfile +0 -23
- data/gemfiles/jruby_activerecord_7.0.gemfile +0 -20
- data/gemfiles/jruby_activerecord_head.gemfile +0 -28
- data/spec/lib/amoeba_spec.rb +0 -598
- data/spec/spec_helper.rb +0 -39
- data/spec/support/data.rb +0 -108
- data/spec/support/models.rb +0 -425
- data/spec/support/schema.rb +0 -237
data/spec/support/schema.rb
DELETED
|
@@ -1,237 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
ActiveRecord::Schema.define do
|
|
4
|
-
self.verbose = false
|
|
5
|
-
|
|
6
|
-
create_table :topics, force: true do |t|
|
|
7
|
-
t.string :title
|
|
8
|
-
t.string :description
|
|
9
|
-
t.timestamps null: true
|
|
10
|
-
end
|
|
11
|
-
|
|
12
|
-
create_table :posts, force: true do |t|
|
|
13
|
-
t.integer :topic_id
|
|
14
|
-
t.integer :owner_id
|
|
15
|
-
t.integer :author_id
|
|
16
|
-
t.string :title
|
|
17
|
-
t.string :contents
|
|
18
|
-
t.timestamps null: true
|
|
19
|
-
end
|
|
20
|
-
|
|
21
|
-
create_table :products, force: true do |t|
|
|
22
|
-
t.string :type
|
|
23
|
-
t.string :title
|
|
24
|
-
t.decimal :price
|
|
25
|
-
t.decimal :weight
|
|
26
|
-
t.decimal :cost
|
|
27
|
-
t.decimal :sleeve
|
|
28
|
-
t.decimal :collar
|
|
29
|
-
t.decimal :length
|
|
30
|
-
t.string :metal
|
|
31
|
-
end
|
|
32
|
-
|
|
33
|
-
create_table :products_sections, force: true do |t|
|
|
34
|
-
t.integer :section_id
|
|
35
|
-
t.integer :product_id
|
|
36
|
-
end
|
|
37
|
-
|
|
38
|
-
create_table :sections, force: true do |t|
|
|
39
|
-
t.string :name
|
|
40
|
-
t.integer :num_employees
|
|
41
|
-
t.decimal :total_sales
|
|
42
|
-
end
|
|
43
|
-
|
|
44
|
-
create_table :images, force: true do |t|
|
|
45
|
-
t.string :filename
|
|
46
|
-
t.integer :product_id
|
|
47
|
-
end
|
|
48
|
-
|
|
49
|
-
create_table :companies, force: true do |t|
|
|
50
|
-
t.string :name
|
|
51
|
-
end
|
|
52
|
-
|
|
53
|
-
create_table :employees, force: true do |t|
|
|
54
|
-
t.integer :company_id
|
|
55
|
-
t.string :name
|
|
56
|
-
t.string :ssn
|
|
57
|
-
t.decimal :salary
|
|
58
|
-
end
|
|
59
|
-
|
|
60
|
-
create_table :customers, force: true do |t|
|
|
61
|
-
t.integer :company_id
|
|
62
|
-
t.string :email
|
|
63
|
-
t.string :password
|
|
64
|
-
t.decimal :balance
|
|
65
|
-
end
|
|
66
|
-
|
|
67
|
-
create_table :addresses, force: true do |t|
|
|
68
|
-
t.integer :addressable_id
|
|
69
|
-
t.string :addressable_type
|
|
70
|
-
|
|
71
|
-
t.string :street
|
|
72
|
-
t.string :unit
|
|
73
|
-
t.string :city
|
|
74
|
-
t.string :state
|
|
75
|
-
t.string :zip
|
|
76
|
-
end
|
|
77
|
-
|
|
78
|
-
create_table :photos, force: true do |t|
|
|
79
|
-
t.integer :imageable_id
|
|
80
|
-
t.string :imageable_type
|
|
81
|
-
|
|
82
|
-
t.string :name
|
|
83
|
-
t.integer :size
|
|
84
|
-
end
|
|
85
|
-
|
|
86
|
-
create_table :post_configs, force: true do |t|
|
|
87
|
-
t.integer :post_id
|
|
88
|
-
t.integer :is_visible
|
|
89
|
-
t.integer :is_open
|
|
90
|
-
t.string :password
|
|
91
|
-
t.timestamps null: true
|
|
92
|
-
end
|
|
93
|
-
|
|
94
|
-
create_table :comments, force: true do |t|
|
|
95
|
-
t.integer :post_id
|
|
96
|
-
t.string :contents
|
|
97
|
-
t.timestamps null: true
|
|
98
|
-
end
|
|
99
|
-
|
|
100
|
-
create_table :custom_things, force: true do |t|
|
|
101
|
-
t.integer :post_id
|
|
102
|
-
t.string :value
|
|
103
|
-
t.timestamps null: true
|
|
104
|
-
end
|
|
105
|
-
|
|
106
|
-
create_table :comments, force: true do |t|
|
|
107
|
-
t.integer :post_id
|
|
108
|
-
t.string :contents
|
|
109
|
-
t.string :nerf
|
|
110
|
-
t.timestamps null: true
|
|
111
|
-
end
|
|
112
|
-
|
|
113
|
-
create_table :ratings, force: true do |t|
|
|
114
|
-
t.integer :comment_id
|
|
115
|
-
t.string :num_stars
|
|
116
|
-
t.timestamps null: true
|
|
117
|
-
end
|
|
118
|
-
|
|
119
|
-
create_table :tags, force: true do |t|
|
|
120
|
-
t.string :value
|
|
121
|
-
t.timestamps null: true
|
|
122
|
-
end
|
|
123
|
-
|
|
124
|
-
create_table :users, force: true do |t|
|
|
125
|
-
t.integer :post_id
|
|
126
|
-
t.string :name
|
|
127
|
-
t.string :email
|
|
128
|
-
t.timestamps null: true
|
|
129
|
-
end
|
|
130
|
-
|
|
131
|
-
create_table :authors, force: true do |t|
|
|
132
|
-
t.string :full_name
|
|
133
|
-
t.string :nickname
|
|
134
|
-
t.timestamps null: true
|
|
135
|
-
end
|
|
136
|
-
|
|
137
|
-
create_table :posts_tags, force: true do |t|
|
|
138
|
-
t.integer :post_id
|
|
139
|
-
t.integer :tag_id
|
|
140
|
-
end
|
|
141
|
-
|
|
142
|
-
create_table :notes, force: true do |t|
|
|
143
|
-
t.string :value
|
|
144
|
-
t.timestamps null: true
|
|
145
|
-
end
|
|
146
|
-
|
|
147
|
-
create_table :notes_posts, force: true do |t|
|
|
148
|
-
t.integer :post_id
|
|
149
|
-
t.integer :note_id
|
|
150
|
-
end
|
|
151
|
-
|
|
152
|
-
create_table :widgets, force: true do |t|
|
|
153
|
-
t.string :value
|
|
154
|
-
end
|
|
155
|
-
|
|
156
|
-
create_table :post_widgets, force: true do |t|
|
|
157
|
-
t.integer :post_id
|
|
158
|
-
t.integer :widget_id
|
|
159
|
-
end
|
|
160
|
-
|
|
161
|
-
create_table :categories, force: true do |t|
|
|
162
|
-
t.string :title
|
|
163
|
-
t.string :description
|
|
164
|
-
end
|
|
165
|
-
|
|
166
|
-
create_table :supercats, force: true do |t|
|
|
167
|
-
t.integer :post_id
|
|
168
|
-
t.integer :category_id
|
|
169
|
-
t.string :ramblings
|
|
170
|
-
t.string :other_ramblings
|
|
171
|
-
t.timestamps null: true
|
|
172
|
-
end
|
|
173
|
-
|
|
174
|
-
create_table :superkittens, force: true do |t|
|
|
175
|
-
t.integer :supercat_id
|
|
176
|
-
t.string :value
|
|
177
|
-
t.timestamps null: true
|
|
178
|
-
end
|
|
179
|
-
|
|
180
|
-
create_table :accounts, force: true do |t|
|
|
181
|
-
t.integer :post_id
|
|
182
|
-
t.string :title
|
|
183
|
-
t.timestamps null: true
|
|
184
|
-
end
|
|
185
|
-
|
|
186
|
-
create_table :histories, force: true do |t|
|
|
187
|
-
t.integer :account_id
|
|
188
|
-
t.string :some_stuff
|
|
189
|
-
t.timestamps null: true
|
|
190
|
-
end
|
|
191
|
-
|
|
192
|
-
create_table :metal_objects, force: true do |t|
|
|
193
|
-
t.string :type
|
|
194
|
-
t.integer :parent_id
|
|
195
|
-
t.timestamps null: true
|
|
196
|
-
end
|
|
197
|
-
|
|
198
|
-
create_table :super_admins, force: true do |t|
|
|
199
|
-
t.string :email
|
|
200
|
-
t.string :password
|
|
201
|
-
t.boolean :active, null: false, default: true
|
|
202
|
-
t.timestamps null: true
|
|
203
|
-
end
|
|
204
|
-
|
|
205
|
-
create_table :boxes, force: true do |t|
|
|
206
|
-
t.string :title
|
|
207
|
-
t.timestamps null: true
|
|
208
|
-
end
|
|
209
|
-
|
|
210
|
-
create_table :box_products, force: true do |t|
|
|
211
|
-
t.string :type
|
|
212
|
-
t.integer :box_id
|
|
213
|
-
t.integer :box_sub_product_id
|
|
214
|
-
t.string :title
|
|
215
|
-
t.timestamps null: true
|
|
216
|
-
end
|
|
217
|
-
|
|
218
|
-
create_table :stages, force: true do |t|
|
|
219
|
-
t.string :title
|
|
220
|
-
t.string :type
|
|
221
|
-
t.integer :external_id
|
|
222
|
-
t.timestamps null: true
|
|
223
|
-
end
|
|
224
|
-
|
|
225
|
-
create_table :participants, force: true do |t|
|
|
226
|
-
t.string :name
|
|
227
|
-
t.string :type
|
|
228
|
-
t.integer :stage_id
|
|
229
|
-
t.timestamps
|
|
230
|
-
end
|
|
231
|
-
|
|
232
|
-
create_table :custom_rules, force: true do |t|
|
|
233
|
-
t.string :description
|
|
234
|
-
t.integer :stage_id
|
|
235
|
-
t.timestamps
|
|
236
|
-
end
|
|
237
|
-
end
|