rmvc 3.2.1 → 3.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rmvc/migrations.rb +12 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9d4e4bceef13fca18437aa0b18de3457c56a80ab
|
4
|
+
data.tar.gz: 4f80cc89a312d1723be2edf45ef9a8d82a3bf25a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d7abc41f45e121812b893504649c43d818cfd58f55a685940adfe4ad665322e6a72cb6cdf86614f2c490021c4c513fad662e56725a75d29d84df01ecab7edd8
|
7
|
+
data.tar.gz: 8c8719877384d8c7666a9879e21d5efbaac6552c3eb25f7e1473583855b917c11ab4531e6a3e3d5b2f9b90c73847db2dfe093d6f4196610a7a3cb2b56c20c962
|
data/lib/rmvc/migrations.rb
CHANGED
@@ -35,6 +35,18 @@ module RMVC
|
|
35
35
|
end
|
36
36
|
end
|
37
37
|
|
38
|
+
# drop a table
|
39
|
+
def drop_table(table)
|
40
|
+
puts "attempting to drop table #{table}..."
|
41
|
+
begin
|
42
|
+
tt = @dbr.prepare("DROP TABLE #{table};")
|
43
|
+
ee = tt.execute
|
44
|
+
puts "table created correctly.".green
|
45
|
+
rescue
|
46
|
+
puts "error while dropping table #{table}".red
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
38
50
|
# add column
|
39
51
|
def add_column(table, cname, type)
|
40
52
|
if type.to_s == "text"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rmvc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.2.
|
4
|
+
version: 3.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- unrar
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-08-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colorize
|
@@ -71,7 +71,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
71
71
|
version: '0'
|
72
72
|
requirements: []
|
73
73
|
rubyforge_project:
|
74
|
-
rubygems_version: 2.
|
74
|
+
rubygems_version: 2.4.8
|
75
75
|
signing_key:
|
76
76
|
specification_version: 4
|
77
77
|
summary: Ruby MVC
|