Sha256: 5012cb441252c07f478d1c0b9f819f24a1405d7cb80346472878794338d66d11

Contents?: true

Size: 715 Bytes

Versions: 3

Compression:

Stored size: 715 Bytes

Contents

class CreateTestingStructure < ActiveRecord::Migration
  def change
    create_table :users do |t|
      t.string :name, :so, :gui, :other, :language, :kind
      t.string :status, :default => :active
      t.string :limited, :limit => 10
      t.string :karma, :limit => 5
      t.boolean :sex
      t.boolean :public
      t.boolean :cool
    end
    create_table :user_skills do |t|
      t.references :user
      t.string :kind
    end
    create_table :user_extras do |t|
      t.references :user
      t.string :key, :null => false
    end
    create_table :permissions do |t|
      t.string  :name, :null => false
      t.string  :kind, :null => false
      t.integer :lvl,  :null => false
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
symbolize-4.2.0 spec/db/001_create_testing_structure.rb
symbolize-4.1.0 spec/db/001_create_testing_structure.rb
symbolize-4.0.4 spec/db/001_create_testing_structure.rb