18F/micropurchase

View on GitHub
db/migrate/20160711175740_create_skills.rb

Summary

Maintainability
A
0 mins
Test Coverage
class CreateSkills < ActiveRecord::Migration
  def change
    create_table :skills do |t|
      t.timestamps null: false
      t.string :name
    end

    add_index :skills, :name, unique: true

    create_join_table :auctions, :skills
  end
end