Sha256: 991e9692b930518f666c9ff6049d91ecb6c5cee18e3d61d1863a741463c447e5

Contents?: true

Size: 711 Bytes

Versions: 3

Compression:

Stored size: 711 Bytes

Contents

class CreateDbThings < ActiveRecord::Migration[5.0]
  def change
    create_table :db_things do |t|
      t.string :label #name
      t.float :mass
      t.boolean :edible
      t.boolean :visible
      t.boolean :wearable
      t.boolean :container
      t.boolean :containable
      t.boolean :transportable
      t.boolean :transport
      t.boolean :platform
      t.boolean :platformable
      t.boolean :damageable
      t.boolean :damager # able to damage
      t.integer :cost
      t.boolean :takeable #able to be taken
      t.boolean :dropable 
      
      t.text :description 
      t.string :thing_type # human readable type such as food, jewel, utensil, etc

      t.timestamps
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dreaming_god-0.1.3 db/migrate/20170330042636_create_db_things.rb
dreaming_god-0.1.2 db/migrate/20170330042636_create_db_things.rb
dreaming_god-0.1.1 db/migrate/20170330042636_create_db_things.rb