wait_a_minute 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
- class CreateWaitAMinuteRequestLogs < ActiveRecord::Migration
1
+ class WaitAMinuteCreateWaitAMinuteRequestLogs < ActiveRecord::Migration
2
2
  def self.up
3
3
  create_table :wait_a_minute_request_logs, :id => false do |t|
4
4
  t.string :ip
@@ -11,9 +11,9 @@ class CreateWaitAMinuteRequestLogs < ActiveRecord::Migration
11
11
  add_index :wait_a_minute_request_logs, :ip
12
12
  #add_index :wait_a_minute_request_logs, :url
13
13
  add_index :wait_a_minute_request_logs, :created_at
14
- add_index :wait_a_minute_request_logs, [:ip, :refused]
15
- add_index :wait_a_minute_request_logs, [:ip, :created_at]
16
- add_index :wait_a_minute_request_logs, [:ip, :created_at, :refused]
14
+ add_index :wait_a_minute_request_logs, [:ip, :refused], :name => 'refused_ip_index'
15
+ add_index :wait_a_minute_request_logs, [:ip, :created_at], :name => 'ip_by_date_index'
16
+ add_index :wait_a_minute_request_logs, [:ip, :created_at, :refused] => 'index_all'
17
17
  end
18
18
 
19
19
  def self.down
@@ -11,7 +11,7 @@ module WaitAMinute
11
11
  end
12
12
 
13
13
  def copy_migration
14
- template 'migration.rb', "db/migrate/#{Time.new.strftime("%Y%m%d%H%M%S")}_create_wait_a_minute.rb"
14
+ template 'migration.rb', "db/migrate/#{Time.new.strftime("%Y%m%d%H%M%S")}_wait_a_minute_create_wait_a_minute_request_logs.rb"
15
15
  end
16
16
  end
17
17
  end
@@ -7,7 +7,7 @@ module WaitAMinute
7
7
  class_option :orm
8
8
 
9
9
  def copy_migration
10
- template 'migration.rb', "db/migrate/#{Time.new.strftime("%Y%m%d%H%M%S")}_create_wait_a_minute.rb"
10
+ template 'migration.rb', "db/migrate/#{Time.new.strftime("%Y%m%d%H%M%S")}_wait_a_minute_create_wait_a_minute_request_logs.rb"
11
11
  end
12
12
  end
13
13
  end
@@ -1,3 +1,3 @@
1
1
  module WaitAMinute
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wait_a_minute
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - George Schreiber