active_record_inline_schema 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,9 @@
1
+ ## 0.5.2 / 2012-04-19
2
+
3
+ * Bug fixes
4
+
5
+ * Fix indexes on multiple columns. Amazing how much damage a single #to_s can do.
6
+
1
7
  ## 0.5.1 / 2012-04-19
2
8
 
3
9
  * Bug fixes
@@ -11,7 +11,7 @@ class ActiveRecordInlineSchema::Config::Index
11
11
 
12
12
  def initialize(parent, column_name, options)
13
13
  @parent = parent
14
- @column_name = column_name.to_s
14
+ @column_name = column_name
15
15
  @initial_options = options.symbolize_keys
16
16
  @name_mutex = ::Mutex.new
17
17
  end
@@ -1,3 +1,3 @@
1
1
  module ActiveRecordInlineSchema
2
- VERSION = "0.5.1"
2
+ VERSION = "0.5.2"
3
3
  end
data/spec/models.rb CHANGED
@@ -27,6 +27,7 @@ class Animal < ActiveRecord::Base
27
27
  col :name
28
28
  add_index :name
29
29
  add_index :id
30
+ add_index [:name, :id]
30
31
  end
31
32
 
32
33
  class Pet < ActiveRecord::Base
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_record_inline_schema
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: