Updated

db/migrate / 20180329062433_create_holidays.rb

A
11 lines of codes
1 methods
7.1 complexity/method
1 churn
7.07 complexity
0 duplications
class CreateHolidays < ActiveRecord::Migration
  1. CreateHolidays has no descriptive comment
def change
  1. CreateHolidays#change has approx 6 statements
create_table :holidays do |t|
  1. CreateHolidays#change has the variable name 't'
t.date :christmas_start
  1. CreateHolidays#change refers to 't' more than self (maybe move it to another class?) Locations: 0 1 2 3 4
t.date :christmas_end
  1. CreateHolidays#change refers to 't' more than self (maybe move it to another class?) Locations: 0 1 2 3 4
t.date :easter_start
  1. CreateHolidays#change refers to 't' more than self (maybe move it to another class?) Locations: 0 1 2 3 4
t.date :easter_end
  1. CreateHolidays#change refers to 't' more than self (maybe move it to another class?) Locations: 0 1 2 3 4
t.timestamps null: false
  1. CreateHolidays#change refers to 't' more than self (maybe move it to another class?) Locations: 0 1 2 3 4
end end end