diff --git a/db/main/migrate/20181130144914_create_migration_requests.rb b/db/main/migrate/20181130144914_create_migration_requests.rb new file mode 100644 index 00000000..2f4fe885 --- /dev/null +++ b/db/main/migrate/20181130144914_create_migration_requests.rb @@ -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 diff --git a/db/main/structure.sql b/db/main/structure.sql index b4cc9e6d..8f30b0dd 100644 --- a/db/main/structure.sql +++ b/db/main/structure.sql @@ -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: - -- diff --git a/spec/travis_migrations_spec.rb b/spec/travis_migrations_spec.rb index 3c0ce934..25be0074 100644 --- a/spec/travis_migrations_spec.rb +++ b/spec/travis_migrations_spec.rb @@ -26,6 +26,7 @@ job_versions jobs memberships + migration_requests messages organizations owner_groups