lib/skr/db/migration_helpers.rb in stockor-0.1.8 vs lib/skr/db/migration_helpers.rb in stockor-0.1.9
- old
+ new
@@ -16,9 +16,13 @@
skr_extra_indexes['visible_id'] = {
function: 'CAST(visible_id AS VARCHAR)'
}
end
+ def skr_state
+ column( :state, :integer, null: false, default: 0, limit: 2 )
+ end
+
# track modifications
def skr_track_modifications( create_only: false )
column( :created_at, :datetime, :null=>false )
column( :created_by_id, :integer, :null=>false )
unless create_only