Sha256: 142f7234d3cb394cb826089d43c3b37b009cf0dbb446a7f95eb0b427e45814a7

Contents?: true

Size: 766 Bytes

Versions: 4

Compression:

Stored size: 766 Bytes

Contents

class CreateCrowdblogUsers < ActiveRecord::Migration
  def change
    create_table :crowdblog_users do |t|
      t.string   :name
      t.boolean  :is_publisher
      t.string   :email, :null => false, :default => ""
      t.string   :encrypted_password, :null => false, :default => ""
      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
      t.string   :gravatar_alias

      t.timestamps
    end

    add_index :crowdblog_users, :email,                :unique => true
    add_index :crowdblog_users, :authentication_token, :unique => true
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
crowdblog-0.1.3 db/migrate/20120215232711_create_crowdblog_users.rb
crowdblog-0.1.2 db/migrate/20120215232711_create_crowdblog_users.rb
crowdblog-0.1.1 db/migrate/20120215232711_create_crowdblog_users.rb
crowdblog-0.1.0 db/migrate/20120215232711_create_crowdblog_users.rb