gorums/WatchIoT

View on GitHub
db/migrate/20151013051803_create_plans.rb

Summary

Maintainability
A
0 mins
Test Coverage
##
# Plan model
#
class CreatePlans < ActiveRecord::Migration
  def change
    create_table :plans do |t|
      t.string :name
      t.decimal :amount_per_month
    end

    add_index :plans, :name
  end
end