Updated

db/migrate / 20170711153944_create_tags.rb

A
11 lines of codes
1 methods
6.4 complexity/method
1 churn
6.38 complexity
0 duplications
class CreateTags < ActiveRecord::Migration
  1. CreateTags has no descriptive comment
def change create_table :tags do |t|
  1. CreateTags#change has the variable name 't'
t.string :name, limit: 50, null: false
  1. CreateTags#change refers to 't' more than self (maybe move it to another class?) Locations: 0 1 2
t.string :description, limit: 200
  1. CreateTags#change refers to 't' more than self (maybe move it to another class?) Locations: 0 1 2
t.timestamps null: false
  1. CreateTags#change refers to 't' more than self (maybe move it to another class?) Locations: 0 1 2
end add_index :tags, :name, unique: true end end