add cashier zones
This commit is contained in:
2
app/models/cashier_terminal_by_zone.rb
Normal file
2
app/models/cashier_terminal_by_zone.rb
Normal file
@@ -0,0 +1,2 @@
|
||||
class CashierTerminalByZone < ApplicationRecord
|
||||
end
|
||||
@@ -0,0 +1,10 @@
|
||||
class CreateCashierTerminalByZones < ActiveRecord::Migration[5.1]
|
||||
def change
|
||||
create_table :cashier_terminal_by_zones do |t|
|
||||
t.integer :cashier_terminal_id
|
||||
t.integer :zone_id
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
5
spec/models/cashier_terminal_by_zone_spec.rb
Normal file
5
spec/models/cashier_terminal_by_zone_spec.rb
Normal file
@@ -0,0 +1,5 @@
|
||||
require 'rails_helper'
|
||||
|
||||
RSpec.describe CashierTerminalByZone, type: :model do
|
||||
pending "add some examples to (or delete) #{__FILE__}"
|
||||
end
|
||||
Reference in New Issue
Block a user