lib/skr/db/migration_helpers.rb in stockor-0.1.9 vs lib/skr/db/migration_helpers.rb in stockor-0.2

- old
+ new

@@ -10,13 +10,11 @@ column( :code, :string, :null=>false ) skr_extra_indexes['code'] = {} end def skr_visible_id - column( :visible_id, :integer, :null=>false ) - skr_extra_indexes['visible_id'] = { - function: 'CAST(visible_id AS VARCHAR)' - } + column( :visible_id, :string, :null=>false ) + skr_extra_indexes['visible_id'] = {} end def skr_state column( :state, :integer, null: false, default: 0, limit: 2 ) end