-
Notifications
You must be signed in to change notification settings - Fork 1
[WIP] Achivement #142
base: dev
Are you sure you want to change the base?
[WIP] Achivement #142
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| class Achievement < ApplicationRecord | ||
| end | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| class CreateAchievements < ActiveRecord::Migration[6.1] | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [rubocop] reported by reviewdog 🐶 |
||
| def up | ||
| create_table :achievements do |t| | ||
| t.uuid :uuid, index: { unique: true }, default: 'gen_random_uuid()', null: false | ||
| t.string :code | ||
| t.string :name | ||
| t.text :description | ||
|
|
||
| t.timestamps | ||
| end | ||
| end | ||
| def down | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [rubocop] reported by reviewdog 🐶 |
||
| drop_table :achievements | ||
| end | ||
| end | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| # Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html | ||
|
|
||
| one: | ||
| code: MyString | ||
| name: MyString | ||
| description: MyText | ||
|
|
||
| two: | ||
| code: MyString | ||
| name: MyString | ||
| description: MyText |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| require "test_helper" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [rubocop] reported by reviewdog 🐶 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [rubocop] reported by reviewdog 🐶 |
||
|
|
||
| class AchievementTest < ActiveSupport::TestCase | ||
| # test "the truth" do | ||
| # assert true | ||
| # end | ||
| end | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[rubocop] reported by reviewdog 🐶
[Correctable] Style/FrozenStringLiteralComment: Missing frozen string literal comment.