Annotations

This commit is contained in:
benji 2017-01-09 16:41:24 +01:00
parent 1e88bdd63a
commit 51460a97b7
6 changed files with 84 additions and 0 deletions

View File

@ -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
belongs_to :user

View File

@ -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
include BaseTransaction

View File

@ -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
factory :notification do

View File

@ -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
factory :request do

View File

@ -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'
RSpec.describe Notification, type: :model do

View File

@ -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'
RSpec.describe Request, type: :model do