Skip to content

Commit

Permalink
add dummy migration files
Browse files Browse the repository at this point in the history
  • Loading branch information
nabeta committed Jul 13, 2019
1 parent 17f565d commit 1775423
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 1 deletion.
23 changes: 23 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
require: rubocop-rails
inherit_from: .rubocop_todo.yml

Layout/SpaceInsideHashLiteralBraces:
Enabled: false
Layout/SpaceInsideBlockBraces:
Enabled: false
Layout/SpaceBeforeBlockBraces:
Enabled: false
Style/WordArray:
Enabled: false
Style/Documentation:
Enabled: false
Style/StringLiterals:
Enabled: false
Style/AsciiComments:
Enabled: false
Metrics/MethodLength:
Enabled: false
Metrics/LineLength:
Enabled: false
Metrics/BlockLength:
Enabled: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class AddProfileIdToUser < ActiveRecord::Migration[5.2]
def change
add_reference :users, :profile, foreign_key: true
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class AddFullNameTranslationsToProfile < ActiveRecord::Migration[5.2]
def change
add_column :profiles, :full_name_translations, :jsonb, default: {}, null: false
end
end
6 changes: 5 additions & 1 deletion spec/rails_helper.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
require 'simplecov'
require 'coveralls'

SimpleCov.formatters = SimpleCov::Formatter::MultiFormatter.new([
SimpleCov::Formatter::HTMLFormatter,
Coveralls::SimpleCov::Formatter
])
SimpleCov.start 'rails'
Coveralls.wear!

# This file is copied to spec/ when you run 'rails generate rspec:install'
ENV["RAILS_ENV"] ||= 'test'
Expand Down

0 comments on commit 1775423

Please sign in to comment.