souls 0.29.4 → 0.29.5
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 44391155b6c710dd11e6074752dddd6d495f07abceb9df857b53663a9747fcba
|
4
|
+
data.tar.gz: bcb6cd5b60ffb949afdb56f2ded4036373bfde9e4d2cce9e408d77fbaa3485c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6fc03249c993388b8f199ad94d8db48859e7306e5128cbc5cf540882f0852cee3f8a0e71242b7619936a00d264f1d2bc8aba7fe5b8901b3e6f532f28d9c1db8a
|
7
|
+
data.tar.gz: 3411cd55b57ccb9d3fe676159d4060291f3c06578973c8d27e5746de4b95fea4f9102cc7cccd86bc5373f1e92c34e56e94aa5ff65ac93dbc2844f28b2ac0525e
|
@@ -1,9 +1,36 @@
|
|
1
1
|
module Souls
|
2
2
|
module Api
|
3
|
-
module
|
4
|
-
|
5
|
-
|
6
|
-
|
3
|
+
module Generate
|
4
|
+
class << self
|
5
|
+
def create_migration(class_name: "user")
|
6
|
+
pluralized_class_name = class_name.underscore.pluralize
|
7
|
+
system("rake db:create_migration NAME=create_#{pluralized_class_name}")
|
8
|
+
end
|
9
|
+
|
10
|
+
def add_column(class_name: "user")
|
11
|
+
pluralized_class_name = class_name.underscore.pluralize
|
12
|
+
system("rake db:create_migration NAME=add_#{pluralized_class_name}")
|
13
|
+
end
|
14
|
+
|
15
|
+
def rename_column(class_name: "user")
|
16
|
+
pluralized_class_name = class_name.underscore.pluralize
|
17
|
+
system("rake db:create_migration NAME=rename_#{pluralized_class_name}")
|
18
|
+
end
|
19
|
+
|
20
|
+
def change_column(class_name: "user")
|
21
|
+
pluralized_class_name = class_name.underscore.pluralize
|
22
|
+
system("rake db:create_migration NAME=change_#{pluralized_class_name}")
|
23
|
+
end
|
24
|
+
|
25
|
+
def remove_column(class_name: "user")
|
26
|
+
pluralized_class_name = class_name.underscore.pluralize
|
27
|
+
system("rake db:create_migration NAME=remove_#{pluralized_class_name}")
|
28
|
+
end
|
29
|
+
|
30
|
+
def drop_table(class_name: "user")
|
31
|
+
pluralized_class_name = class_name.underscore.pluralize
|
32
|
+
system("rake db:create_migration NAME=drop_#{pluralized_class_name}")
|
33
|
+
end
|
7
34
|
end
|
8
35
|
end
|
9
36
|
end
|
data/lib/souls/version.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.8.
|
1
|
+
0.8.5
|
@@ -1 +1 @@
|
|
1
|
-
0.8.
|
1
|
+
0.8.5
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: souls
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.29.
|
4
|
+
version: 0.29.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- POPPIN-FUMI
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date: 2021-08-
|
13
|
+
date: 2021-08-16 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activesupport
|