Sha256: b2efd2bf4a1f3233a6c33e264b84e2dbf9e1a227934e0841e2211c9e168c22ac
Contents?: true
Size: 668 Bytes
Versions: 17
Compression:
Stored size: 668 Bytes
Contents
class DevisePasswordSharingAddTo<%= table_name.camelize %> < ActiveRecord::Migration def self.up change_table :<%= table_name %> do |t| t.datetime :banned_for_password_sharing_at, :default => nil end create_table :login_events do |t| t.integer :<%= table_name.singularize.underscore %>_id t.string :ip_address t.float :latitude t.float :longitude t.string :city t.string :country_code t.string :region_name t.datetime :created_at end end def self.down change_table :<%= table_name %> do |t| t.remove :banned_for_password_sharing_at end drop_table :login_events end end
Version data entries
17 entries across 17 versions & 1 rubygems