Class: CreateGoogleSafeBrowsingFullHashRequests
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateGoogleSafeBrowsingFullHashRequests
- Defined in:
- lib/rails/generators/google/model/templates/create_google_safe_browsing_full_hash_requests.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
17 18 19 |
# File 'lib/rails/generators/google/model/templates/create_google_safe_browsing_full_hash_requests.rb', line 17 def down drop_table :google_safe_browsing_full_hash_requests end |
.up ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/rails/generators/google/model/templates/create_google_safe_browsing_full_hash_requests.rb', line 4 def up create_table :google_safe_browsing_full_hash_requests do |t| t.string :prefix t.string :state t.integer :attempts t.datetime :created_at t.datetime :requested_at end add_index :google_safe_browsing_full_hash_requests, :prefix, :name => 'index_hash_prefix' end |