Sha256: 3682e054bd25567740394d66a8a5d264abce4923d6a689e717dc5671e01eb145

Contents?: true

Size: 396 Bytes

Versions: 28

Compression:

Stored size: 396 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

28 entries across 28 versions & 1 rubygems

Version Path
activerecord-turntable-2.5.0 spec/migrations/002_create_user_statuses.rb
activerecord-turntable-2.4.0 spec/migrations/002_create_user_statuses.rb
activerecord-turntable-2.3.3 spec/migrations/002_create_user_statuses.rb
activerecord-turntable-2.3.2 spec/migrations/002_create_user_statuses.rb
activerecord-turntable-2.3.1 spec/migrations/002_create_user_statuses.rb
activerecord-turntable-2.3.0 spec/migrations/002_create_user_statuses.rb
activerecord-turntable-2.2.2 spec/migrations/002_create_user_statuses.rb
activerecord-turntable-2.2.1 spec/migrations/002_create_user_statuses.rb
activerecord-turntable-2.2.0 spec/migrations/002_create_user_statuses.rb
activerecord-turntable-2.1.1 spec/migrations/002_create_user_statuses.rb
activerecord-turntable-2.1.0 spec/migrations/002_create_user_statuses.rb
activerecord-turntable-2.1.0.rc2 spec/migrations/002_create_user_statuses.rb
activerecord-turntable-2.1.0.rc1 spec/migrations/002_create_user_statuses.rb
activerecord-turntable-2.1.0.beta2 spec/migrations/002_create_user_statuses.rb
activerecord-turntable-2.1.0.beta1 spec/migrations/002_create_user_statuses.rb
activerecord-turntable-2.0.6 spec/migrations/002_create_user_statuses.rb
activerecord-turntable-2.0.5 spec/migrations/002_create_user_statuses.rb
activerecord-turntable-2.0.4 spec/migrations/002_create_user_statuses.rb
activerecord-turntable-2.0.3 spec/migrations/002_create_user_statuses.rb
activerecord-turntable-2.0.2 spec/migrations/002_create_user_statuses.rb