rmvc 3.2.1 → 3.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rmvc/migrations.rb +12 -0
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 92a2ddb01efc0130d4abb6d5fbf829de610e62b7
4
- data.tar.gz: d3dc0ce1e8990e7f4cfee0601a206510d45d8601
3
+ metadata.gz: 9d4e4bceef13fca18437aa0b18de3457c56a80ab
4
+ data.tar.gz: 4f80cc89a312d1723be2edf45ef9a8d82a3bf25a
5
5
  SHA512:
6
- metadata.gz: c44bf1e269eec605bfda5bce1032eba05a2c72528abd5b31816fc89b400eac75b2efa1e90ace4f1ac20d31beeee5032a1c7ec14b1e3a4c139f5e68ada6c2d914
7
- data.tar.gz: f94d7c041601ded15057a52210ca2aeafe1bf5aafa5e05dc8e2651db3aabaf64616b0be9f570508d3b83c8db806e344c558f50ce3d46fa62301b64dcce2151d4
6
+ metadata.gz: 9d7abc41f45e121812b893504649c43d818cfd58f55a685940adfe4ad665322e6a72cb6cdf86614f2c490021c4c513fad662e56725a75d29d84df01ecab7edd8
7
+ data.tar.gz: 8c8719877384d8c7666a9879e21d5efbaac6552c3eb25f7e1473583855b917c11ab4531e6a3e3d5b2f9b90c73847db2dfe093d6f4196610a7a3cb2b56c20c962
@@ -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.1
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: 2014-12-17 00:00:00.000000000 Z
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.2.2
74
+ rubygems_version: 2.4.8
75
75
  signing_key:
76
76
  specification_version: 4
77
77
  summary: Ruby MVC