Sha256: 94b0f460bdbe9cd7f6cf527ce67a8b96870882d7fa1d0952092a7c09e144f0f7

Contents?: true

Size: 223 Bytes

Versions: 3

Compression:

Stored size: 223 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 2 versions & 1 rubygems

Version Path
rspec-paper_trail-0.0.7 lib/generators/rspec/paper_trail/templates/migrations/stringify_versions_item_id.rb
rspec-paper_trail-0.0.6 lib/generators/rspec-paper_trail/templates/migrations/stringify_versions_item_id.rb
rspec-paper_trail-0.0.6 lib/generators/rspec/paper_trail/templates/migrations/stringify_versions_item_id.rb