Sha256: dd6c1bd61c02ede36603f34dd5cca5dcedf2fbf32fcd26b1aece4899bd82b13e

Contents?: true

Size: 378 Bytes

Versions: 3

Compression:

Stored size: 378 Bytes

Contents

class CreateUserStatuses < ActiveRecord::Migration
  def self.up
    create_table :user_statuses do |t|
      t.belongs_to :user, null: false
      t.integer    :hp,   null: false, default: 0
      t.integer    :mp,   null: false, default: 0
      t.datetime   :deleted_at, default: nil

      t.timestamps
    end
  end

  def self.down
    drop_table :user_statuses
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
activerecord-turntable-3.0.0.alpha3 spec/migrations/002_create_user_statuses.rb
activerecord-turntable-3.0.0.alpha2 spec/migrations/002_create_user_statuses.rb
activerecord-turntable-3.0.0.alpha1 spec/migrations/002_create_user_statuses.rb