Annotations
This commit is contained in:
parent
1e88bdd63a
commit
51460a97b7
6 changed files with 84 additions and 0 deletions
|
@ -1,3 +1,15 @@
|
||||||
|
# == Schema Information
|
||||||
|
#
|
||||||
|
# Table name: notifications
|
||||||
|
#
|
||||||
|
# id :integer not null, primary key
|
||||||
|
# user_id :integer not null
|
||||||
|
# message :string
|
||||||
|
# read :boolean default(FALSE)
|
||||||
|
# created_at :datetime not null
|
||||||
|
# updated_at :datetime not null
|
||||||
|
#
|
||||||
|
|
||||||
class Notification < ActiveRecord::Base
|
class Notification < ActiveRecord::Base
|
||||||
belongs_to :user
|
belongs_to :user
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,19 @@
|
||||||
|
# == Schema Information
|
||||||
|
#
|
||||||
|
# Table name: requests
|
||||||
|
#
|
||||||
|
# id :integer not null, primary key
|
||||||
|
# debtor_id :integer not null
|
||||||
|
# creditor_id :integer not null
|
||||||
|
# issuer_id :integer not null
|
||||||
|
# issuer_type :string not null
|
||||||
|
# amount :integer default(0), not null
|
||||||
|
# message :string
|
||||||
|
# status :integer default(0)
|
||||||
|
# created_at :datetime not null
|
||||||
|
# updated_at :datetime not null
|
||||||
|
#
|
||||||
|
|
||||||
class Request < ActiveRecord::Base
|
class Request < ActiveRecord::Base
|
||||||
include BaseTransaction
|
include BaseTransaction
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,15 @@
|
||||||
|
# == Schema Information
|
||||||
|
#
|
||||||
|
# Table name: notifications
|
||||||
|
#
|
||||||
|
# id :integer not null, primary key
|
||||||
|
# user_id :integer not null
|
||||||
|
# message :string
|
||||||
|
# read :boolean default(FALSE)
|
||||||
|
# created_at :datetime not null
|
||||||
|
# updated_at :datetime not null
|
||||||
|
#
|
||||||
|
|
||||||
FactoryGirl.define do
|
FactoryGirl.define do
|
||||||
factory :notification do
|
factory :notification do
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,19 @@
|
||||||
|
# == Schema Information
|
||||||
|
#
|
||||||
|
# Table name: requests
|
||||||
|
#
|
||||||
|
# id :integer not null, primary key
|
||||||
|
# debtor_id :integer not null
|
||||||
|
# creditor_id :integer not null
|
||||||
|
# issuer_id :integer not null
|
||||||
|
# issuer_type :string not null
|
||||||
|
# amount :integer default(0), not null
|
||||||
|
# message :string
|
||||||
|
# status :integer default(0)
|
||||||
|
# created_at :datetime not null
|
||||||
|
# updated_at :datetime not null
|
||||||
|
#
|
||||||
|
|
||||||
FactoryGirl.define do
|
FactoryGirl.define do
|
||||||
factory :request do
|
factory :request do
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,15 @@
|
||||||
|
# == Schema Information
|
||||||
|
#
|
||||||
|
# Table name: notifications
|
||||||
|
#
|
||||||
|
# id :integer not null, primary key
|
||||||
|
# user_id :integer not null
|
||||||
|
# message :string
|
||||||
|
# read :boolean default(FALSE)
|
||||||
|
# created_at :datetime not null
|
||||||
|
# updated_at :datetime not null
|
||||||
|
#
|
||||||
|
|
||||||
require 'rails_helper'
|
require 'rails_helper'
|
||||||
|
|
||||||
RSpec.describe Notification, type: :model do
|
RSpec.describe Notification, type: :model do
|
||||||
|
|
|
@ -1,3 +1,19 @@
|
||||||
|
# == Schema Information
|
||||||
|
#
|
||||||
|
# Table name: requests
|
||||||
|
#
|
||||||
|
# id :integer not null, primary key
|
||||||
|
# debtor_id :integer not null
|
||||||
|
# creditor_id :integer not null
|
||||||
|
# issuer_id :integer not null
|
||||||
|
# issuer_type :string not null
|
||||||
|
# amount :integer default(0), not null
|
||||||
|
# message :string
|
||||||
|
# status :integer default(0)
|
||||||
|
# created_at :datetime not null
|
||||||
|
# updated_at :datetime not null
|
||||||
|
#
|
||||||
|
|
||||||
require 'rails_helper'
|
require 'rails_helper'
|
||||||
|
|
||||||
RSpec.describe Request, type: :model do
|
RSpec.describe Request, type: :model do
|
||||||
|
|
Loading…
Reference in a new issue