added order_queue_item
This commit is contained in:
2
app/models/order_queue_item.rb
Normal file
2
app/models/order_queue_item.rb
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
class OrderQueueItem < ApplicationRecord
|
||||||
|
end
|
||||||
13
db/migrate/20170531070951_create_order_queue_items.rb
Normal file
13
db/migrate/20170531070951_create_order_queue_items.rb
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
class CreateOrderQueueItems < ActiveRecord::Migration[5.1]
|
||||||
|
def change
|
||||||
|
create_table :order_queue_items do |t|
|
||||||
|
t.string :item_code, :null => false, :index => true
|
||||||
|
t.references :order_queue_station, foreign_key: true
|
||||||
|
t.references :order, foreign_key: true
|
||||||
|
t.boolean :print_status
|
||||||
|
t.boolean :delivery_status
|
||||||
|
t.boolean :queue_status
|
||||||
|
t.timestamps
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
5
spec/models/order_queue_item_spec.rb
Normal file
5
spec/models/order_queue_item_spec.rb
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
require 'rails_helper'
|
||||||
|
|
||||||
|
RSpec.describe OrderQueueItem, type: :model do
|
||||||
|
pending "add some examples to (or delete) #{__FILE__}"
|
||||||
|
end
|
||||||
Reference in New Issue
Block a user