Skip to content

Add build column to permissions #241

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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');