Sha256: c174ef387a389b145defd8c9d17ec26561935e85554c8d72ae19a5ce3f7b8a7c
Contents?: true
Size: 726 Bytes
Versions: 5
Compression:
Stored size: 726 Bytes
Contents
class CreateTestingStructure < ActiveRecord::Migration def self.up create_table :users do |t| t.string :name, :so, :gui, :other, :status, :language, :kind 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 def self.down drop_table :users end end
Version data entries
5 entries across 5 versions & 1 rubygems