emotions 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module Emotions
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
@@ -2,12 +2,10 @@ class AddEmotions < ActiveRecord::Migration
2
2
  def up
3
3
  create_table :emotions do |t|
4
4
  # The emotional model
5
- t.string :emotional_type
6
- t.integer :emotional_id
5
+ t.references :emotional, polymorphic: true
7
6
 
8
7
  # The emotive model
9
- t.string :emotive_type
10
- t.integer :emotive_id
8
+ t.references :emotive, polymorphic: true
11
9
 
12
10
  # The type of emotion
13
11
  t.string :emotion
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: emotions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
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: 2013-05-21 00:00:00.000000000 Z
12
+ date: 2013-05-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -97,7 +97,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
97
97
  version: '0'
98
98
  segments:
99
99
  - 0
100
- hash: -3833006688586079833
100
+ hash: -3151211424949677575
101
101
  required_rubygems_version: !ruby/object:Gem::Requirement
102
102
  none: false
103
103
  requirements:
@@ -106,7 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
106
106
  version: '0'
107
107
  segments:
108
108
  - 0
109
- hash: -3833006688586079833
109
+ hash: -3151211424949677575
110
110
  requirements: []
111
111
  rubyforge_project:
112
112
  rubygems_version: 1.8.23