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-1.6.1 lib/generators/active_record/templates/create_scores_and_points.rb
merit-1.6.0 lib/generators/active_record/templates/create_scores_and_points.rb
merit-1.6.0 test/dummy/db/migrate/20130329224410_create_scores_and_points.rb
merit-1.5.0 test/dummy/db/migrate/20130329224410_create_scores_and_points.rb
merit-1.5.0 lib/generators/active_record/templates/create_scores_and_points.rb
merit-1.4.0 test/dummy/db/migrate/20121013174256_create_scores_and_points.rb
merit-1.4.0 lib/generators/active_record/templates/create_scores_and_points.rb
merit-1.3.1 test/dummy/db/migrate/20121013174256_create_scores_and_points.rb
merit-1.3.1 lib/generators/active_record/templates/create_scores_and_points.rb
merit-1.3.0 lib/generators/active_record/templates/create_scores_and_points.rb
merit-1.3.0 test/dummy/db/migrate/20121013174256_create_scores_and_points.rb
merit-1.2.3 test/dummy/db/migrate/20121013174256_create_scores_and_points.rb
merit-1.2.3 lib/generators/active_record/templates/create_scores_and_points.rb
merit-1.2.2 test/dummy/db/migrate/20121013174256_create_scores_and_points.rb
merit-1.2.2 lib/generators/active_record/templates/create_scores_and_points.rb
merit-1.2.1 test/dummy/db/migrate/20121013174256_create_scores_and_points.rb
merit-1.2.1 lib/generators/active_record/templates/create_scores_and_points.rb
merit-1.2.0 test/dummy/db/migrate/20121013174256_create_scores_and_points.rb
merit-1.2.0 lib/generators/active_record/templates/create_scores_and_points.rb
merit-1.1.2 test/dummy/db/migrate/20121013174256_create_scores_and_points.rb