Sha256: e589f1c88cf2a39134b5eae27c31e7d98b69796ed70ab9c8dfb02d296f4f318b

Contents?: true

Size: 1012 Bytes

Versions: 2

Compression:

Stored size: 1012 Bytes

Contents

class DeviseCreateFwtPushNotificationServerUsers < ActiveRecord::Migration
  
  def change
    create_table(:fwt_push_notification_server_users) do |t|
      ## Database authenticatable
      t.string :email,              :null => false, :default => ""
      t.string :encrypted_password, :null => false, :default => ""

      ## Recoverable
      t.string   :reset_password_token
      t.datetime :reset_password_sent_at

      ## Rememberable
      t.datetime :remember_created_at

      ## Trackable
      t.integer  :sign_in_count, :default => 0, :null => false
      t.datetime :current_sign_in_at
      t.datetime :last_sign_in_at
      t.string   :current_sign_in_ip
      t.string   :last_sign_in_ip

      t.timestamps
    end

    add_index :fwt_push_notification_server_users, :email,                :unique => true, :name => "fwt_users_email_index"
    add_index :fwt_push_notification_server_users, :reset_password_token, :unique => true, :name => "fwt_users_reset_password_token_index"

  end

end

Version data entries

2 entries across 1 versions & 1 rubygems

Version Path
fwt_push_notification_server-0.0.6 lib/generators/fwt_push_notification_server/install/templates/devise_create_fwt_push_notification_server_users.rb
fwt_push_notification_server-0.0.6 test/dummy/db/migrate/20130918095821_devise_create_fwt_push_notification_server_users.rb