Merge remote-tracking branch 'tootsuite/master' into glitchsoc/master
This commit is contained in:
6
db/migrate/20180206000000_change_user_id_nonnullable.rb
Normal file
6
db/migrate/20180206000000_change_user_id_nonnullable.rb
Normal file
@@ -0,0 +1,6 @@
|
||||
class ChangeUserIdNonnullable < ActiveRecord::Migration[5.1]
|
||||
def change
|
||||
change_column_null :invites, :user_id, false
|
||||
change_column_null :web_settings, :user_id, false
|
||||
end
|
||||
end
|
@@ -10,7 +10,7 @@
|
||||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 20180204034416) do
|
||||
ActiveRecord::Schema.define(version: 20180206000000) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
@@ -204,7 +204,7 @@ ActiveRecord::Schema.define(version: 20180204034416) do
|
||||
end
|
||||
|
||||
create_table "invites", force: :cascade do |t|
|
||||
t.bigint "user_id"
|
||||
t.bigint "user_id", null: false
|
||||
t.string "code", default: "", null: false
|
||||
t.datetime "expires_at"
|
||||
t.integer "max_uses"
|
||||
@@ -526,7 +526,7 @@ ActiveRecord::Schema.define(version: 20180204034416) do
|
||||
t.json "data"
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
t.bigint "user_id"
|
||||
t.bigint "user_id", null: false
|
||||
t.index ["user_id"], name: "index_web_settings_on_user_id", unique: true
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user