Sha256: d2bee26da3deafd68e3203cbc4f687c17124ccd87f37d0bf79cda7b7958ab421

Contents?: true

Size: 608 Bytes

Versions: 12

Compression:

Stored size: 608 Bytes

Contents

class CreateTemplates < ActiveRecord::Migration
  def change
    create_table :templates do |t|
      t.references :account, index: true, foreign_key: true
      t.string :template_key
      t.string :template_path
      t.string :template_print_driver             # use to identify if template only works with a particular driver, like the :zebra
      t.string :template_paper                    # use to identify if template only works with a particular paper, like the :label10x32
      t.text :template_content
      t.integer :lock_version, default: 1

      t.timestamps null: false
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
oxen_printer-0.4.15 lib/generators/printer/templates/template.rb
oxen_printer-0.4.14 lib/generators/printer/templates/template.rb
oxen_printer-0.4.13 lib/generators/printer/templates/template.rb
oxen_printer-0.4.12 lib/generators/printer/templates/template.rb
oxen_printer-0.4.11 lib/generators/printer/templates/template.rb
oxen_printer-0.4.9 lib/generators/printer/templates/template.rb
oxen_printer-0.4.8 lib/generators/printer/templates/template.rb
oxen_printer-0.4.7 lib/generators/printer/templates/template.rb
oxen_printer-0.4.5 lib/generators/printer/templates/template.rb
oxen_printer-0.4.4 lib/generators/printer/templates/template.rb
oxen_printer-0.4.3 lib/generators/printer/templates/template.rb
oxen_printer-0.4.2 lib/generators/printer/templates/template.rb