Sha256: db983157816366859a61aea9378c803fa9a2753241d847a737043ab1b86abb3f

Contents?: true

Size: 613 Bytes

Versions: 3

Compression:

Stored size: 613 Bytes

Contents

class CreateTables < ActiveRecord::Migration
  def self.up
    create_table :users do |t|
      t.string :username
      t.database_authenticatable :null => true
      t.confirmable
      t.recoverable
      t.lockable
      t.timestamps
      t.password_sharing
    end

    create_table :login_events do |t|
      t.integer :user_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
    drop_table :users
    drop_table :login_histories
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
devise_password_sharing_extension-0.0.4 spec/rails_app/db/migrate/20111019173200_create_tables.rb
devise_password_sharing_extension-0.0.2 spec/rails_app/db/migrate/20111019173200_create_tables.rb
devise_password_sharing_extension-0.0.1 spec/rails_app/db/migrate/20111019173200_create_tables.rb