lib/focuslight/data.rb in focuslight-0.2.3 vs lib/focuslight/data.rb in focuslight-0.2.4

- old
+ new

@@ -19,11 +19,11 @@ @graphs = @db.from(:graphs) @complex_graphs = @db.from(:complex_graphs) end def number_type - @floatings ? Float : Integer + @floatings ? Float : :Bignum end def create_tables ntype = number_type @@ -36,10 +36,10 @@ column :number, ntype, default: 0 column :mode, String, default: "gauge", null: false column :description, String, default: "", null: false column :sort, Integer, default: 0, null: false column :color, String, default: "#00CC00", null: false - column :ulimit, ntype, default: 1000000000000000, null: false + column :ulimit, ntype, default: 1000_0000_0000_0000, null: false column :llimit, ntype, default: 0, null: false column :type, String, default: "AREA", null: false String :meta, text: true column :created_at, Integer, null: false column :updated_at, Integer, null: false