Sha256: 9e55a6427fc66d6fc000a8cea00a6be6f56465b2d30dad41b2df346161c5bbfc

Contents?: true

Size: 261 Bytes

Versions: 31

Compression:

Stored size: 261 Bytes

Contents

class AddFieldsToUsers < ActiveRecord::Migration
  def self.up
    add_column :users, :sash_id, :integer
    add_column :users, :level, :integer, :default => 0
  end

  def self.down
    remove_column :users, :sash_id
    remove_column :users, :level
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
merit-2.4.0 test/dummy/db/migrate/20120318022220_add_fields_to_users.rb
merit-2.3.4 test/dummy/db/migrate/20120318022220_add_fields_to_users.rb
merit-2.3.3 test/dummy/db/migrate/20120318022220_add_fields_to_users.rb
merit-2.3.2 test/dummy/db/migrate/20120318022220_add_fields_to_users.rb
merit-2.3.1 test/dummy/db/migrate/20120318022220_add_fields_to_users.rb
merit-2.3.0 test/dummy/db/migrate/20120318022220_add_fields_to_users.rb
merit-2.2.0 test/dummy/db/migrate/20120318022220_add_fields_to_users.rb
merit-2.1.2 test/dummy/db/migrate/20120318022220_add_fields_to_users.rb
merit-2.1.1 test/dummy/db/migrate/20120318022220_add_fields_to_users.rb
merit-2.1.0 test/dummy/db/migrate/20120318022220_add_fields_to_users.rb
merit-2.0.0 test/dummy/db/migrate/20120318022220_add_fields_to_users.rb
merit-1.9.0 test/dummy/db/migrate/20120318022220_add_fields_to_users.rb
merit-1.8.0 test/dummy/db/migrate/20120318022220_add_fields_to_users.rb
merit-1.7.1 test/dummy/db/migrate/20120318022220_add_fields_to_users.rb
merit-1.7.0 test/dummy/db/migrate/20120318022220_add_fields_to_users.rb
merit-1.6.2 test/dummy/db/migrate/20120318022220_add_fields_to_users.rb
merit-1.6.1 test/dummy/db/migrate/20120318022220_add_fields_to_users.rb
merit-1.6.0 test/dummy/db/migrate/20120318022220_add_fields_to_users.rb
merit-1.5.0 test/dummy/db/migrate/20120318022220_add_fields_to_users.rb
merit-1.4.0 test/dummy/db/migrate/20120318022220_add_fields_to_users.rb