createDBTable 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/createDBTable.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a774bd01192fb0d3d468096b98be1d4d3c193b1b
|
4
|
+
data.tar.gz: c698bfdc27c00c13f2931b2353f91820faa1054a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ca8bd319ec3d6b532fc0181251f7f07ad8da39b76c706e7d2748a188f3f8ba10296ba0ffba11547917ae774f52d340f98fe5b9f4dfb8cd006ff159c2da2b202
|
7
|
+
data.tar.gz: 2bd49ca87d18c8bfc7f2f1f0de092a003d361a35942e0a96c8a003c409646b3aa588cbf58971dcb7daded6d782fe895cad5ac29876518155b09a11d8c3e524cf
|
data/lib/createDBTable.rb
CHANGED
@@ -20,8 +20,8 @@ class RunRailsMigration
|
|
20
20
|
protected
|
21
21
|
def runRailsMigration
|
22
22
|
begin
|
23
|
-
exit_status=system("
|
24
|
-
puts "#{exit_status}
|
23
|
+
exit_status=system("rails generate model #{@tablename} #{@schema}")
|
24
|
+
puts "#{exit_status} HEROKU run rails generate model ran for #{@tablename}"
|
25
25
|
rescue Exception, NameError => nonerror
|
26
26
|
system('puts "Exception with Error" + nonerror >> log/NewVendorTable.log')
|
27
27
|
puts "Exception with Error" + nonerror >> log/NewVendorTable.log
|
@@ -38,7 +38,7 @@ protected
|
|
38
38
|
private
|
39
39
|
def self.runDBMigrate
|
40
40
|
begin
|
41
|
-
exit_status=system("
|
41
|
+
exit_status=system("rake db:migrate")
|
42
42
|
puts "Heroku run rake db migrate ran successfully"
|
43
43
|
rescue Exception, NameError => nonerror
|
44
44
|
system('puts "Exception with Error" + nonerror >> log/NewVendorTable.log')
|