Sha256: 716112d53d4a8bfe51a42e428e4ed21d0718cf1ee76be8016c212aada0743f69

Contents?: true

Size: 901 Bytes

Versions: 17

Compression:

Stored size: 901 Bytes

Contents

class CreatePasskitTables < ActiveRecord::Migration[<%= ActiveRecord::Migration.current_version %>]
  def change
    create_table :passkit_passes do |t|
      t.string :generator_type
      t.string :klass
      t.bigint :generator_id
      t.string :serial_number
      t.string :authentication_token
      t.json :data
      t.integer :version
      t.timestamps null: false
      t.index [:generator_type, :generator_id], name: 'index_passkit_passes_on_generator'
    end

    create_table :passkit_devices do |t|
      t.string :identifier
      t.string :push_token
      t.timestamps null: false
    end

    create_table :passkit_registrations do |t|
      t.belongs_to :passkit_pass, index: true
      t.belongs_to :passkit_device, index: true
      t.timestamps null: false
    end

    create_table :passkit_logs do |t|
      t.text :content
      t.timestamps null: false
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
passkit-0.7.0 lib/generators/templates/create_passkit_tables.rb.tt
passkit-0.6.1 lib/generators/templates/create_passkit_tables.rb.tt
passkit-0.6.0 lib/generators/templates/create_passkit_tables.rb.tt
passkit-0.5.4 lib/generators/templates/create_passkit_tables.rb.tt
passkit-0.5.3 lib/generators/templates/create_passkit_tables.rb.tt
passkit-0.5.2 lib/generators/templates/create_passkit_tables.rb.tt
passkit-0.5.1 lib/generators/templates/create_passkit_tables.rb.tt
passkit-0.5.0 lib/generators/templates/create_passkit_tables.rb.tt
passkit-0.4.3 lib/generators/templates/create_passkit_tables.rb.tt
passkit-0.4.2 lib/generators/templates/create_passkit_tables.rb.tt
passkit-0.4.1 lib/generators/templates/create_passkit_tables.rb.tt
passkit-0.4.0 lib/generators/templates/create_passkit_tables.rb.tt
passkit-0.3.3 lib/generators/templates/create_passkit_tables.rb.tt
passkit-0.3.2 lib/generators/templates/create_passkit_tables.rb.tt
passkit-0.3.1 lib/generators/templates/create_passkit_tables.rb.tt
passkit-0.3.0 lib/generators/templates/create_passkit_tables.rb.tt
passkit-0.2.0 lib/generators/templates/create_passkit_tables.rb.tt