Sha256: 6ecb01b06f4d60a26618165cdf3ad17854c68257ab3efa3afefa7ef544cfa22a

Contents?: true

Size: 857 Bytes

Versions: 59

Compression:

Stored size: 857 Bytes

Contents

class DeviseUsers < ActiveRecord::Migration
  def self.up
    create_table ConstructorCore::User.table_name do |t|
      t.string :email,              :null => false, :default => ""
      t.string :encrypted_password, :null => false, :default => ""
      t.string   :reset_password_token
      t.datetime :reset_password_sent_at
      t.datetime :remember_created_at
      t.integer  :sign_in_count, :default => 0
      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.string :authentication_token
    end

    add_index ConstructorCore::User.table_name, :email,                :unique => true
    add_index ConstructorCore::User.table_name, :reset_password_token, :unique => true
  end

  def self.down
    drop_table ConstructorCore::User.table_name
  end
end

Version data entries

59 entries across 59 versions & 3 rubygems

Version Path
constructor-core-1.0.0beta2 db/migrate/1_devise_users.rb
constructor-core-1.0.0beta1 db/migrate/1_devise_users.rb
constructor-core-0.9.1 db/migrate/1_devise_users.rb
constructor-core-0.9.0 db/migrate/1_devise_users.rb
constructor-core-0.8.19 db/migrate/1_devise_users.rb
constructor-core-0.8.18 db/migrate/1_devise_users.rb
constructor-core-0.8.17 db/migrate/1_devise_users.rb
constructor-core-0.8.16 db/migrate/1_devise_users.rb
constructor-core-0.8.15 db/migrate/1_devise_users.rb
constructor-core-0.8.14 db/migrate/1_devise_users.rb
constructor-core-0.8.13 db/migrate/1_devise_users.rb
constructor-core-0.8.12 db/migrate/1_devise_users.rb
constructor-core-0.8.11 db/migrate/1_devise_users.rb
constructor-core-0.8.10 db/migrate/1_devise_users.rb
constructor-core-0.8.8 db/migrate/1_devise_users.rb
constructor-core-0.8.7 db/migrate/1_devise_users.rb
constructor-core-0.8.6 db/migrate/1_devise_users.rb
constructor-core-0.8.5 db/migrate/1_devise_users.rb
constructor-core-0.8.4 db/migrate/1_devise_users.rb
constructor-core-0.8.3 db/migrate/1_devise_users.rb