Require explicit version number for asciicast "version" column

This commit is contained in:
Marcin Kulik 2015-02-28 17:48:49 +00:00
parent dad5f40c17
commit 336f0213d9
2 changed files with 7 additions and 2 deletions

View File

@ -0,0 +1,5 @@
class RemoveDefaultFromAsciicastsVersion < ActiveRecord::Migration
def change
change_column_default :asciicasts, :version, nil
end
end

View File

@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20150227112949) do
ActiveRecord::Schema.define(version: 20150228174314) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@ -53,7 +53,7 @@ ActiveRecord::Schema.define(version: 20150227112949) do
t.string "user_agent"
t.string "theme_name"
t.float "snapshot_at"
t.integer "version", default: 0, null: false
t.integer "version", null: false
t.string "file"
end