25 lines
854 B
Ruby
Executable File
25 lines
854 B
Ruby
Executable File
class CreatePrintSettings < ActiveRecord::Migration[5.1]
|
|
def change
|
|
create_table :print_settings do |t|
|
|
t.string :name, :null => false
|
|
t.string :unique_code, :null => false, :index => true
|
|
t.string :template
|
|
t.string :font, :default => ""
|
|
t.integer :header_font_size, :null => false, :default => 10
|
|
t.integer :item_font_size, :null => false, :default => 8
|
|
t.string :printer_name, :null => false
|
|
t.string :api_settings
|
|
t.string :brand_name
|
|
t.string :printer_type
|
|
t.decimal :page_width, :null => false, :default => 210
|
|
t.decimal :page_height, :null => false, :default => 1450
|
|
t.integer :print_copies, :null => false, :default => 1
|
|
t.string :precision
|
|
t.boolean :delimiter
|
|
t.integer :heading_space
|
|
|
|
t.timestamps
|
|
end
|
|
end
|
|
end
|