diff --git a/app/models/notification.rb b/app/models/notification.rb index ddad234..a926d62 100644 --- a/app/models/notification.rb +++ b/app/models/notification.rb @@ -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 diff --git a/app/models/request.rb b/app/models/request.rb index 4c82bd3..9e85688 100644 --- a/app/models/request.rb +++ b/app/models/request.rb @@ -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 diff --git a/spec/factories/notifications.rb b/spec/factories/notifications.rb index 23b8f71..20df5f0 100644 --- a/spec/factories/notifications.rb +++ b/spec/factories/notifications.rb @@ -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 diff --git a/spec/factories/requests.rb b/spec/factories/requests.rb index e7d79e9..8193437 100644 --- a/spec/factories/requests.rb +++ b/spec/factories/requests.rb @@ -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 diff --git a/spec/models/notification_spec.rb b/spec/models/notification_spec.rb index bbdc6e0..964cd26 100644 --- a/spec/models/notification_spec.rb +++ b/spec/models/notification_spec.rb @@ -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 diff --git a/spec/models/request_spec.rb b/spec/models/request_spec.rb index 8ccca08..1aab9ee 100644 --- a/spec/models/request_spec.rb +++ b/spec/models/request_spec.rb @@ -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