Sha256: 665642467a1e424c4ae53257f0c97863cd2b792253114b8a0529e3520c98a452

Contents?: true

Size: 224 Bytes

Versions: 3

Compression:

Stored size: 224 Bytes

Contents

class StringifyVersionsItemId < ActiveRecord::Migration
  def up
    change_column :versions, :item_id, :string, null: false
  end

  def down
    change_column :versions, :item_id, :integer, limit: 8, null: false
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rspec-paper_trail-0.0.10 lib/generators/rspec/paper_trail/templates/migrations/stringify_versions_item_id.rb
rspec-paper_trail-0.0.9 lib/generators/rspec/paper_trail/templates/migrations/stringify_versions_item_id.rb
rspec-paper_trail-0.0.8 lib/generators/rspec/paper_trail/templates/migrations/stringify_versions_item_id.rb