mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-13 00:24:42 +08:00
Remove not null constraint from project_id in Activity table
This commit is contained in:
parent
9ed3313f0f
commit
ad8e5973fa
2 changed files with 9 additions and 2 deletions
|
@ -0,0 +1,7 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
class RemoveNullConstraintFromProjectInActivities < ActiveRecord::Migration[5.1]
|
||||||
|
def change
|
||||||
|
change_column_null :activities, :project_id, :integer, true
|
||||||
|
end
|
||||||
|
end
|
|
@ -11,7 +11,7 @@
|
||||||
# It's strongly recommended that you check this file into your version control system.
|
# It's strongly recommended that you check this file into your version control system.
|
||||||
|
|
||||||
|
|
||||||
ActiveRecord::Schema.define(version: 20190213064847) do
|
ActiveRecord::Schema.define(version: 20190227110801) do
|
||||||
|
|
||||||
# These are extensions that must be enabled in order to support this database
|
# These are extensions that must be enabled in order to support this database
|
||||||
enable_extension "plpgsql"
|
enable_extension "plpgsql"
|
||||||
|
@ -25,7 +25,7 @@ ActiveRecord::Schema.define(version: 20190213064847) do
|
||||||
t.string "message"
|
t.string "message"
|
||||||
t.datetime "created_at", null: false
|
t.datetime "created_at", null: false
|
||||||
t.datetime "updated_at", null: false
|
t.datetime "updated_at", null: false
|
||||||
t.bigint "project_id", null: false
|
t.bigint "project_id"
|
||||||
t.bigint "experiment_id"
|
t.bigint "experiment_id"
|
||||||
t.string "subject_type"
|
t.string "subject_type"
|
||||||
t.bigint "subject_id"
|
t.bigint "subject_id"
|
||||||
|
|
Loading…
Add table
Reference in a new issue