Skip to content
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

Create migrations requests table #159

Open
wants to merge 4 commits 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
10 changes: 10 additions & 0 deletions db/main/migrate/20181130144914_create_migration_requests.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
class CreateMigrationRequests < ActiveRecord::Migration[4.2]
def change
create_table :migration_requests do |t|
t.string :owner_name, null: false
t.string :owner_type, null: false
t.date :accepted_at
t.timestamps
end
end
end
33 changes: 33 additions & 0 deletions db/main/structure.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1453,6 +1453,39 @@ CREATE SEQUENCE messages_id_seq
ALTER SEQUENCE messages_id_seq OWNED BY messages.id;


--
-- Name: migration_requests; Type: TABLE; Schema: public; Owner: -
--

CREATE TABLE migration_requests (
id integer DEFAULT nextval('migration_requests_id_seq'::regclass) NOT NULL,
owner_name character varying NOT NULL,
owner_type character varying NOT NULL,
accepted_at date,
created_at timestamp without time zone,
updated_at timestamp without time zone
);


--
-- Name: migration_requests_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--

CREATE SEQUENCE migration_requests_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;


--
-- Name: migration_requests_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--

ALTER SEQUENCE migration_requests_id_seq OWNED BY migration_requests.id;


--
-- Name: organizations; Type: TABLE; Schema: public; Owner: -
--
Expand Down
1 change: 1 addition & 0 deletions spec/travis_migrations_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
job_versions
jobs
memberships
migration_requests
messages
organizations
owner_groups
Expand Down