Skip to content

Commit

Permalink
added longer limit to snapshots.data field in db
Browse files Browse the repository at this point in the history
  • Loading branch information
jywarren committed Dec 7, 2017
1 parent 71e3e65 commit 53158c7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions db/migrate/20171207204101_add_snapshot_limit.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class AddSnapshotLimit < ActiveRecord::Migration
def change
change_column :snapshots, :data, :text, limit: 4294967295
end
end
8 changes: 4 additions & 4 deletions db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#
# It's strongly recommended to check this file into your version control system.

ActiveRecord::Schema.define(:version => 20160421084510) do
ActiveRecord::Schema.define(:version => 20171207204101) do

create_table "comments", :force => true do |t|
t.string "author"
Expand Down Expand Up @@ -669,9 +669,9 @@
t.integer "spectrum_id"
t.integer "tag_id"
t.text "description"
t.text "data"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.text "data", :limit => 4294967295
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end

add_index "snapshots", ["tag_id"], :name => "index_snapshots_on_tag_id"
Expand Down

0 comments on commit 53158c7

Please sign in to comment.