Sha256: aef152b687202c8a83d56ba2fe9bd01835ce9617b5f96cf58708970d0fb484cd

Contents?: true

Size: 512 Bytes

Versions: 7

Compression:

Stored size: 512 Bytes

Contents

# frozen_string_literal: true

class InstallSnapcher < ActiveRecord::Migration[7.1]
  def self.up
    create_table :scannings, force: true do |t|
      t.column :scannable_id, :integer
      t.column :scannable_type, :string
      t.column :table_name, :string
      t.column :column_name, :string
      t.column :before_params, :string
      t.column :after_params, :string
      t.column :action, :string
      t.column :created_at, :datetime
    end
  end

  def self.down
    drop_table :scannings
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
snapcher-0.3.1 sample-app/db/migrate/20231019151334_install_snapcher.rb
snapcher-0.3.0 sample-app/db/migrate/20231019151334_install_snapcher.rb
snapcher-0.1.5 sample-app/db/migrate/20231019151334_install_snapcher.rb
snapcher-0.1.4 sample-app/db/migrate/20231019151334_install_snapcher.rb
snapcher-0.1.3 sample-app/db/migrate/20231019151334_install_snapcher.rb
snapcher-0.1.2 sample-app/db/migrate/20231019151334_install_snapcher.rb
snapcher-0.1.1 sample-app/db/migrate/20231019151334_install_snapcher.rb