Remove null constraint
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
class RemoveNullConstraintFromCardNotNowsUser < ActiveRecord::Migration[8.1]
|
||||
def change
|
||||
change_column_null :card_not_nows, :user_id, true
|
||||
end
|
||||
end
|
||||
Generated
+2
-2
@@ -10,7 +10,7 @@
|
||||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema[8.1].define(version: 2025_10_15_114014) do
|
||||
ActiveRecord::Schema[8.1].define(version: 2025_10_15_122204) do
|
||||
create_table "accesses", force: :cascade do |t|
|
||||
t.datetime "accessed_at"
|
||||
t.integer "collection_id", null: false
|
||||
@@ -135,7 +135,7 @@ ActiveRecord::Schema[8.1].define(version: 2025_10_15_114014) do
|
||||
t.integer "card_id", null: false
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
t.integer "user_id", null: false
|
||||
t.integer "user_id"
|
||||
t.index ["card_id"], name: "index_card_not_nows_on_card_id", unique: true
|
||||
t.index ["user_id"], name: "index_card_not_nows_on_user_id"
|
||||
end
|
||||
|
||||
+51
-51
@@ -438,7 +438,16 @@ columns:
|
||||
- *5
|
||||
- *6
|
||||
- *9
|
||||
- *18
|
||||
- &25 !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
|
||||
auto_increment:
|
||||
name: user_id
|
||||
cast_type: *3
|
||||
sql_type_metadata: *4
|
||||
'null': true
|
||||
default:
|
||||
default_function:
|
||||
collation:
|
||||
comment:
|
||||
cards:
|
||||
- *24
|
||||
- !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
|
||||
@@ -452,7 +461,7 @@ columns:
|
||||
collation:
|
||||
comment:
|
||||
- *5
|
||||
- &25 !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
|
||||
- &26 !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
|
||||
auto_increment:
|
||||
name: creator_id
|
||||
cast_type: *3
|
||||
@@ -465,12 +474,12 @@ columns:
|
||||
- !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
|
||||
auto_increment:
|
||||
name: due_on
|
||||
cast_type: &37 !ruby/object:ActiveRecord::Type::Date
|
||||
cast_type: &38 !ruby/object:ActiveRecord::Type::Date
|
||||
precision:
|
||||
scale:
|
||||
limit:
|
||||
timezone:
|
||||
sql_type_metadata: &38 !ruby/object:ActiveRecord::ConnectionAdapters::SqlTypeMetadata
|
||||
sql_type_metadata: &39 !ruby/object:ActiveRecord::ConnectionAdapters::SqlTypeMetadata
|
||||
sql_type: date
|
||||
type: :date
|
||||
limit:
|
||||
@@ -502,7 +511,7 @@ columns:
|
||||
default_function:
|
||||
collation:
|
||||
comment:
|
||||
- &36 !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
|
||||
- &37 !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
|
||||
auto_increment:
|
||||
name: title
|
||||
cast_type: *7
|
||||
@@ -554,16 +563,7 @@ columns:
|
||||
collation:
|
||||
comment:
|
||||
- *9
|
||||
- !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
|
||||
auto_increment:
|
||||
name: user_id
|
||||
cast_type: *3
|
||||
sql_type_metadata: *4
|
||||
'null': true
|
||||
default:
|
||||
default_function:
|
||||
collation:
|
||||
comment:
|
||||
- *25
|
||||
collection_publications:
|
||||
- *24
|
||||
- *5
|
||||
@@ -583,11 +583,11 @@ columns:
|
||||
- !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
|
||||
auto_increment:
|
||||
name: all_access
|
||||
cast_type: &32 !ruby/object:ActiveModel::Type::Boolean
|
||||
cast_type: &33 !ruby/object:ActiveModel::Type::Boolean
|
||||
precision:
|
||||
scale:
|
||||
limit:
|
||||
sql_type_metadata: &33 !ruby/object:ActiveRecord::ConnectionAdapters::SqlTypeMetadata
|
||||
sql_type_metadata: &34 !ruby/object:ActiveRecord::ConnectionAdapters::SqlTypeMetadata
|
||||
sql_type: boolean
|
||||
type: :boolean
|
||||
limit:
|
||||
@@ -599,7 +599,7 @@ columns:
|
||||
collation:
|
||||
comment:
|
||||
- *5
|
||||
- *25
|
||||
- *26
|
||||
- *6
|
||||
- *10
|
||||
- *9
|
||||
@@ -625,7 +625,7 @@ columns:
|
||||
comments:
|
||||
- *23
|
||||
- *5
|
||||
- *25
|
||||
- *26
|
||||
- *6
|
||||
- *9
|
||||
conversation_messages:
|
||||
@@ -649,7 +649,7 @@ columns:
|
||||
default_function:
|
||||
collation:
|
||||
comment:
|
||||
- &30 !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
|
||||
- &31 !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
|
||||
auto_increment:
|
||||
name: cost_in_microcents
|
||||
cast_type: *11
|
||||
@@ -748,7 +748,7 @@ columns:
|
||||
- *9
|
||||
- *18
|
||||
creators_filters:
|
||||
- *25
|
||||
- *26
|
||||
- *20
|
||||
entropy_configurations:
|
||||
- !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
|
||||
@@ -797,7 +797,7 @@ columns:
|
||||
comment:
|
||||
- *24
|
||||
- *5
|
||||
- *25
|
||||
- *26
|
||||
- !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
|
||||
auto_increment:
|
||||
name: eventable_id
|
||||
@@ -822,11 +822,11 @@ columns:
|
||||
- !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
|
||||
auto_increment:
|
||||
name: particulars
|
||||
cast_type: &26 !ruby/object:ActiveRecord::Type::Json
|
||||
cast_type: &27 !ruby/object:ActiveRecord::Type::Json
|
||||
precision:
|
||||
scale:
|
||||
limit:
|
||||
sql_type_metadata: &27 !ruby/object:ActiveRecord::ConnectionAdapters::SqlTypeMetadata
|
||||
sql_type_metadata: &28 !ruby/object:ActiveRecord::ConnectionAdapters::SqlTypeMetadata
|
||||
sql_type: json
|
||||
type: :json
|
||||
limit:
|
||||
@@ -840,12 +840,12 @@ columns:
|
||||
- *9
|
||||
filters:
|
||||
- *5
|
||||
- *25
|
||||
- *26
|
||||
- !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
|
||||
auto_increment:
|
||||
name: fields
|
||||
cast_type: *26
|
||||
sql_type_metadata: *27
|
||||
cast_type: *27
|
||||
sql_type_metadata: *28
|
||||
'null': false
|
||||
default: "{}"
|
||||
default_function:
|
||||
@@ -865,7 +865,7 @@ columns:
|
||||
- *9
|
||||
filters_tags:
|
||||
- *20
|
||||
- &35 !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
|
||||
- &36 !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
|
||||
auto_increment:
|
||||
name: tag_id
|
||||
cast_type: *3
|
||||
@@ -898,7 +898,7 @@ columns:
|
||||
default_function:
|
||||
collation:
|
||||
comment:
|
||||
- &28 !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
|
||||
- &29 !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
|
||||
auto_increment:
|
||||
name: source_id
|
||||
cast_type: *3
|
||||
@@ -908,7 +908,7 @@ columns:
|
||||
default_function:
|
||||
collation:
|
||||
comment:
|
||||
- &29 !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
|
||||
- &30 !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
|
||||
auto_increment:
|
||||
name: source_type
|
||||
cast_type: *7
|
||||
@@ -977,12 +977,12 @@ columns:
|
||||
default_function:
|
||||
collation:
|
||||
comment:
|
||||
- *28
|
||||
- *29
|
||||
- *30
|
||||
- *9
|
||||
- *18
|
||||
period_highlights:
|
||||
- &34 !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
|
||||
- &35 !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
|
||||
auto_increment:
|
||||
name: content
|
||||
cast_type: *15
|
||||
@@ -992,7 +992,7 @@ columns:
|
||||
default_function:
|
||||
collation:
|
||||
comment:
|
||||
- *30
|
||||
- *31
|
||||
- *5
|
||||
- *6
|
||||
- *19
|
||||
@@ -1037,7 +1037,7 @@ columns:
|
||||
collation:
|
||||
comment:
|
||||
- *9
|
||||
- &31 !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
|
||||
- &32 !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
|
||||
auto_increment:
|
||||
name: user_agent
|
||||
cast_type: *7
|
||||
@@ -1183,21 +1183,21 @@ columns:
|
||||
collation:
|
||||
comment:
|
||||
- *9
|
||||
- *31
|
||||
- *32
|
||||
- *18
|
||||
steps:
|
||||
- *23
|
||||
- !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
|
||||
auto_increment:
|
||||
name: completed
|
||||
cast_type: *32
|
||||
sql_type_metadata: *33
|
||||
cast_type: *33
|
||||
sql_type_metadata: *34
|
||||
'null': false
|
||||
default: false
|
||||
default_function:
|
||||
collation:
|
||||
comment:
|
||||
- *34
|
||||
- *35
|
||||
- *5
|
||||
- *6
|
||||
- *9
|
||||
@@ -1205,12 +1205,12 @@ columns:
|
||||
- *23
|
||||
- *5
|
||||
- *6
|
||||
- *35
|
||||
- *36
|
||||
- *9
|
||||
tags:
|
||||
- *5
|
||||
- *6
|
||||
- *36
|
||||
- *37
|
||||
- *9
|
||||
user_settings:
|
||||
- !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
|
||||
@@ -1253,8 +1253,8 @@ columns:
|
||||
- !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
|
||||
auto_increment:
|
||||
name: starts_at
|
||||
cast_type: *37
|
||||
sql_type_metadata: *38
|
||||
cast_type: *38
|
||||
sql_type_metadata: *39
|
||||
'null': false
|
||||
default:
|
||||
default_function:
|
||||
@@ -1263,11 +1263,11 @@ columns:
|
||||
- *9
|
||||
- *18
|
||||
users:
|
||||
- &40 !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
|
||||
- &41 !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
|
||||
auto_increment:
|
||||
name: active
|
||||
cast_type: *32
|
||||
sql_type_metadata: *33
|
||||
cast_type: *33
|
||||
sql_type_metadata: *34
|
||||
'null': false
|
||||
default: true
|
||||
default_function:
|
||||
@@ -1316,8 +1316,8 @@ columns:
|
||||
- !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
|
||||
auto_increment:
|
||||
name: watching
|
||||
cast_type: *32
|
||||
sql_type_metadata: *33
|
||||
cast_type: *33
|
||||
sql_type_metadata: *34
|
||||
'null': false
|
||||
default: true
|
||||
default_function:
|
||||
@@ -1347,7 +1347,7 @@ columns:
|
||||
comment:
|
||||
- *6
|
||||
- *9
|
||||
- &39 !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
|
||||
- &40 !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
|
||||
auto_increment:
|
||||
name: webhook_id
|
||||
cast_type: *3
|
||||
@@ -1401,9 +1401,9 @@ columns:
|
||||
collation:
|
||||
comment:
|
||||
- *9
|
||||
- *39
|
||||
webhooks:
|
||||
- *40
|
||||
webhooks:
|
||||
- *41
|
||||
- *24
|
||||
- *5
|
||||
- *6
|
||||
@@ -3197,4 +3197,4 @@ indexes:
|
||||
nulls_not_distinct:
|
||||
comment:
|
||||
valid: true
|
||||
version: 20251015114014
|
||||
version: 20251015122204
|
||||
|
||||
Reference in New Issue
Block a user