Sha256: df7b87a7a222cce14599138b561efa1b3861b95b35ee589d231aff0d8153f7c6

Contents?: true

Size: 455 Bytes

Versions: 47

Compression:

Stored size: 455 Bytes

Contents

class CreateScoresAndPoints < ActiveRecord::Migration
  def self.up
    create_table :merit_scores do |t|
      t.references :sash
      t.string :category, :default => 'default'
    end

    create_table :merit_score_points do |t|
      t.references :score
      t.integer :num_points, :default => 0
      t.string :log
      t.datetime :created_at
    end
  end

  def self.down
    drop_table :merit_scores
    drop_table :merit_score_points
  end
end

Version data entries

47 entries across 30 versions & 1 rubygems

Version Path
merit-2.4.0 test/dummy/db/migrate/20130329224410_create_scores_and_points.rb
merit-2.3.4 test/dummy/db/migrate/20130329224410_create_scores_and_points.rb
merit-2.3.3 test/dummy/db/migrate/20130329224410_create_scores_and_points.rb
merit-2.3.2 test/dummy/db/migrate/20130329224410_create_scores_and_points.rb
merit-2.3.1 test/dummy/db/migrate/20130329224410_create_scores_and_points.rb
merit-2.3.0 test/dummy/db/migrate/20130329224410_create_scores_and_points.rb
merit-2.2.0 test/dummy/db/migrate/20130329224410_create_scores_and_points.rb
merit-2.1.2 test/dummy/db/migrate/20130329224410_create_scores_and_points.rb
merit-2.1.1 test/dummy/db/migrate/20130329224410_create_scores_and_points.rb
merit-2.1.0 test/dummy/db/migrate/20130329224410_create_scores_and_points.rb
merit-2.0.0 test/dummy/db/migrate/20130329224410_create_scores_and_points.rb
merit-1.9.0 test/dummy/db/migrate/20130329224410_create_scores_and_points.rb
merit-1.8.0 test/dummy/db/migrate/20130329224410_create_scores_and_points.rb
merit-1.7.1 lib/generators/active_record/templates/create_scores_and_points.rb
merit-1.7.1 test/dummy/db/migrate/20130329224410_create_scores_and_points.rb
merit-1.7.0 test/dummy/db/migrate/20130329224410_create_scores_and_points.rb
merit-1.7.0 lib/generators/active_record/templates/create_scores_and_points.rb
merit-1.6.2 lib/generators/active_record/templates/create_scores_and_points.rb
merit-1.6.2 test/dummy/db/migrate/20130329224410_create_scores_and_points.rb
merit-1.6.1 lib/generators/active_record/templates/create_scores_and_points.rb