Sha256: 898198c4c6e531556221d8b4d0b1428e26e18730170a04f164ee833a3ad30f6b

Contents?: true

Size: 998 Bytes

Versions: 10

Compression:

Stored size: 998 Bytes

Contents

class CreateUsers < ActiveRecord::Migration
  class User < ActiveRecord::Base  
  end
  def self.up
    create_table "users" do |t|
      t.column :login,                     :string
      t.column :email,                     :string
      t.column :description,               :text
      t.column :avatar_id,                 :integer
      t.column :crypted_password,          :string, :limit => 40
      t.column :salt,                      :string, :limit => 40
      t.column :created_at,                :datetime
      t.column :updated_at,                :datetime
      t.column :remember_token,            :string
      t.column :remember_token_expires_at, :datetime
      t.column :stylesheet,                :text 
      t.column :view_count,                :integer, :default => 0
      t.column :admin,                     :boolean, :default => false
      t.column :vendor,                    :boolean, :default => false
    end
  end

  def self.down
    drop_table "users"
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
community_engine-3.2.0 db/migrate/001_create_users.rb
community_engine-3.0.0 db/migrate/001_create_users.rb
community_engine-2.3.2 db/migrate/001_create_users.rb
community_engine-2.3.1 db/migrate/001_create_users.rb
community_engine-2.3.0 db/migrate/001_create_users.rb
community_engine-2.1.0 db/migrate/001_create_users.rb
community_engine-2.0.0 db/migrate/001_create_users.rb
community_engine-2.0.0.beta3 db/migrate/001_create_users.rb
community_engine-2.0.0.beta2 db/migrate/001_create_users.rb
community_engine-2.0.0.beta1 db/migrate/001_create_users.rb