class CreateGoogleSafeBrowsingFullHashRequests
Public Class Methods
down()
click to toggle source
# 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()
click to toggle source
# 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