Updated

db/migrate / 20160715092819_create_tasks.rb

A
10 lines of codes
1 methods
4.9 complexity/method
1 churn
4.85 complexity
0 duplications
class CreateTasks < ActiveRecord::Migration
  1. CreateTasks has no descriptive comment
def change create_table :tasks do |t|
  1. CreateTasks#change has the variable name 't'
t.string :name, limit: 60, null: false t.timestamps null: false end add_index :tasks, :name, unique: true end end