https://github.com/firedev/asma
https://github.com/firedev/asma
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/firedev/asma
- Owner: firedev
- Created: 2023-11-16T19:38:58.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-11-16T19:42:38.000Z (over 2 years ago)
- Last Synced: 2023-11-16T21:11:50.981Z (over 2 years ago)
- Language: Ruby
- Size: 50.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# README
```
rails db:setup
```
```
$ rails db:setup
Created database 'storage/development.sqlite3'
Created database 'storage/test.sqlite3'
Assets: 1
Cars: 1
Transactions: 1
```
```
Transaction.first.asset.car # car_id
Transaction.first.asset.assetable # polymorphic
```