immigrant 0.1.7 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,13 @@
1
+ class <%= migration_class_name %> < ActiveRecord::Migration
2
+ def self.up
3
+ <% @keys.each do |key| -%>
4
+ <%= key.to_ruby(:add) %>
5
+ <%- end -%>
6
+ end
7
+
8
+ def self.down
9
+ <% @keys.each do |key| -%>
10
+ <%= key.to_ruby(:remove) %>
11
+ <%- end -%>
12
+ end
13
+ end
@@ -0,0 +1,7 @@
1
+ class <%= migration_class_name %> < ActiveRecord::Migration
2
+ def change
3
+ <% @keys.each do |key| -%>
4
+ <%= key.to_ruby(:add) %>
5
+ <%- end -%>
6
+ end
7
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: immigrant
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-04-27 00:00:00.000000000 Z
12
+ date: 2014-05-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord
@@ -55,6 +55,8 @@ files:
55
55
  - README.md
56
56
  - lib/generators/USAGE
57
57
  - lib/generators/immigration_generator.rb
58
+ - lib/generators/templates/immigration-pre-3.1.rb.erb
59
+ - lib/generators/templates/immigration.rb.erb
58
60
  - lib/immigrant/foreign_key_definition.rb
59
61
  - lib/immigrant/loader.rb
60
62
  - lib/immigrant/railtie.rb