referthis 0.1.2 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,11 @@
1
+ class CreateReferrals < ActiveRecord::Migration
2
+ def change
3
+ create_table :referrals do |t|
4
+ t.integer :referee_id
5
+ t.integer :user_id
6
+ t.integer :visits, :default => 0
7
+
8
+ t.timestamps
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,9 @@
1
+ class CreateReferees < ActiveRecord::Migration
2
+ def change
3
+ create_table :referees do |t|
4
+ t.string :endpoint
5
+
6
+ t.timestamps
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,6 @@
1
+ class AddKeys < ActiveRecord::Migration
2
+ def change
3
+ add_foreign_key "referrals", "referees", :name => "referrals_referee_id_fk"
4
+ add_foreign_key "referrals", "users", :name => "referrals_user_id_fk"
5
+ end
6
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: referthis
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.2.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -20,6 +20,9 @@ files:
20
20
  - lib/referee.rb
21
21
  - lib/referral.rb
22
22
  - lib/sms.rb
23
+ - lib/db/migrate/20120621004835_create_referrals.rb
24
+ - lib/db/migrate/20120621004904_create_referees.rb
25
+ - lib/db/migrate/20120621215402_add_keys.rb
23
26
  homepage: http://github.com/ahcarpenter/referthis
24
27
  licenses: []
25
28
  post_install_message: