-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1645215
commit 072acef
Showing
4 changed files
with
34 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,13 @@ | ||
run: | ||
@echo "🚀 Running the application..." | ||
bundle exec rails db:seed | ||
bundle exec rails server | ||
|
||
migrate: | ||
@echo "🚀 Running the migrations..." | ||
bundle exec rake db:migrate | ||
annotate --models | ||
annotate --models | ||
|
||
shell: | ||
@echo "🚀 Running the console..." | ||
bundle exec rails console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,4 +13,8 @@ | |
# | ||
class Account < ApplicationRecord | ||
belongs_to :user | ||
|
||
def to_s | ||
"#{account_number} - #{user}" | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,4 +11,8 @@ | |
# updated_at :datetime not null | ||
# | ||
class User < ApplicationRecord | ||
|
||
def to_s | ||
"#{first_name} #{last_name}" | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters