is_unique 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1 @@
1
+ pkg
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.0.2
@@ -2,6 +2,8 @@ class <%= file_name.camelcase %> < ActiveRecord::Migration
2
2
  def self.up
3
3
  add_column :<%= table_name %>, :<%= unique_hash_column %>, :integer
4
4
  add_index :<%= table_name %>, :<%= unique_hash_column %>
5
+ # Generate hashes for existing records
6
+ <%= class_name %>.all.collect { |r| r.save(false) }
5
7
  end
6
8
 
7
9
  def self.down
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{is_unique}
8
- s.version = "0.0.1"
8
+ s.version = "0.0.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Eugene Bolshakov"]
@@ -13,7 +13,8 @@ Gem::Specification.new do |s|
13
13
  s.description = %q{Makes ActiveRecord return existing records instead of creating duplicates}
14
14
  s.email = %q{eugene.bolshakov@gmail.com}
15
15
  s.files = [
16
- "Rakefile",
16
+ ".gitignore",
17
+ "Rakefile",
17
18
  "VERSION",
18
19
  "generators/is_unique/is_unique_generator.rb",
19
20
  "generators/is_unique/templates/is_unique_migration.rb",
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 1
9
- version: 0.0.1
8
+ - 2
9
+ version: 0.0.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Eugene Bolshakov
@@ -40,6 +40,7 @@ extensions: []
40
40
  extra_rdoc_files: []
41
41
 
42
42
  files:
43
+ - .gitignore
43
44
  - Rakefile
44
45
  - VERSION
45
46
  - generators/is_unique/is_unique_generator.rb