Class: StringifyVersionsItemId

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/rspec/paper_trail/templates/migrations/stringify_versions_item_id.rb

Instance Method Summary collapse

Instance Method Details

#downObject



6
7
8
# File 'lib/generators/rspec/paper_trail/templates/migrations/stringify_versions_item_id.rb', line 6

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

#upObject



2
3
4
# File 'lib/generators/rspec/paper_trail/templates/migrations/stringify_versions_item_id.rb', line 2

def up
  change_column :versions, :item_id, :string, null: false
end