Updated

db/migrate / 20160211003703_add_location_code_to_country_petition_journal.rb

A
7 lines of codes
1 methods
3.3 complexity/method
1 churn
3.3 complexity
0 duplications
class AddLocationCodeToCountryPetitionJournal < ActiveRecord::Migration
  1. AddLocationCodeToCountryPetitionJournal has no descriptive comment
def change add_column :country_petition_journals, :location_code, :string, limit: 30 add_index :country_petition_journals, [:petition_id, :location_code], unique: true, name: 'index_country_petition_journals_on_petition_and_location' change_column_null :country_petition_journals, :country, true end end