add currency entity
This commit is contained in:
14
app/models/currency.rb
Normal file
14
app/models/currency.rb
Normal file
@@ -0,0 +1,14 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
# == Schema Information
|
||||
#
|
||||
# Table name: currencies
|
||||
#
|
||||
# id :bigint not null, primary key
|
||||
# name :string not null
|
||||
# created_at :datetime not null
|
||||
# updated_at :datetime not null
|
||||
#
|
||||
class Currency < ApplicationRecord
|
||||
validates :name, presence: true
|
||||
end
|
||||
Reference in New Issue
Block a user