Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
class AddCanBuildToUsersAndPermissions < ActiveRecord::Migration[5.2]
def change
add_column :users, :can_build, :boolean, default: true
add_column :permissions, :build, :boolean, default: true
end
end

9 changes: 6 additions & 3 deletions db/main/structure.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2089,7 +2089,8 @@ CREATE TABLE public.permissions (
push boolean DEFAULT false,
pull boolean DEFAULT false,
org_id integer,
com_id integer
com_id integer,
build boolean DEFAULT true,
);


Expand Down Expand Up @@ -2958,7 +2959,8 @@ CREATE TABLE public.users (
redacted_at timestamp without time zone,
preferences jsonb DEFAULT '{}'::jsonb,
vcs_type character varying DEFAULT 'GithubUser'::character varying,
vcs_id character varying
vcs_id character varying,
can_build boolean DEFAULT true
);


Expand Down Expand Up @@ -5789,6 +5791,7 @@ INSERT INTO "schema_migrations" (version) VALUES
('20200330110527'),
('20200406121218'),
('20200424000000'),
('20200527123653');
('20200527123653'),
('20201026220757');