Skip to content

Commit

Permalink
Revert "added seeds.rb for data"
Browse files Browse the repository at this point in the history
This reverts commit 01e5fbb.
  • Loading branch information
sarala committed Feb 5, 2020
1 parent 7d1df02 commit 28d5f37
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 15 deletions.
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@
/db/*.sqlite3
/db/*.sqlite3-journal

# Ignore seed datafile
/db/seeds.rb

# Ignore all logfiles and tempfiles.
/log/*
/tmp/*
Expand Down
36 changes: 24 additions & 12 deletions db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

ActiveRecord::Schema.define(version: 2020_01_31_180609) do

create_table "active_storage_attachments", options: "ENGINE=InnoDB DEFAULT CHARSET=latin1", force: :cascade do |t|
create_table "active_storage_attachments", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin", force: :cascade do |t|
t.string "name", limit: 191, null: false
t.string "record_type", null: false
t.bigint "record_id", null: false
Expand All @@ -22,7 +22,7 @@
t.index ["record_type", "record_id", "name", "blob_id"], name: "index_active_storage_attachments_uniqueness", unique: true
end

create_table "active_storage_blobs", options: "ENGINE=InnoDB DEFAULT CHARSET=latin1", force: :cascade do |t|
create_table "active_storage_blobs", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin", force: :cascade do |t|
t.string "key", limit: 191, null: false
t.string "filename", limit: 191, null: false
t.string "content_type", limit: 191
Expand All @@ -33,7 +33,7 @@
t.index ["key"], name: "index_active_storage_blobs_on_key", unique: true
end

create_table "allocator", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t|
create_table "allocator", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT", force: :cascade do |t|
t.string "system_email", null: false
t.datetime "created"
t.integer "doi_quota_allowed", null: false
Expand Down Expand Up @@ -77,7 +77,7 @@
t.index ["symbol"], name: "symbol", unique: true
end

create_table "allocator_prefixes", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t|
create_table "allocator_prefixes", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT", force: :cascade do |t|
t.bigint "allocator", null: false
t.bigint "prefixes", null: false
t.datetime "created_at"
Expand All @@ -87,7 +87,7 @@
t.index ["prefixes"], name: "FKE7FBD674AF86A1C7"
end

create_table "audits", options: "ENGINE=InnoDB DEFAULT CHARSET=latin1", force: :cascade do |t|
create_table "audits", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin", force: :cascade do |t|
t.integer "auditable_id"
t.string "auditable_type"
t.integer "associated_id"
Expand All @@ -109,7 +109,18 @@
t.index ["user_id", "user_type"], name: "user_index"
end

create_table "datacentre", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t|
create_table "contacts", options: "ENGINE=InnoDB DEFAULT CHARSET=latin1", force: :cascade do |t|
t.bigint "allocator"
t.string "email"
t.string "given_name"
t.string "family_name"
t.string "role"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["allocator"], name: "fk_rails_5c598567a8"
end

create_table "datacentre", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT", force: :cascade do |t|
t.text "comments", limit: 4294967295
t.string "system_email", null: false
t.datetime "created"
Expand Down Expand Up @@ -147,7 +158,7 @@
t.index ["url"], name: "index_datacentre_on_url", length: 100
end

create_table "datacentre_prefixes", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t|
create_table "datacentre_prefixes", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT", force: :cascade do |t|
t.bigint "datacentre", null: false
t.bigint "prefixes", null: false
t.datetime "created_at"
Expand All @@ -159,7 +170,7 @@
t.index ["prefixes"], name: "FK13A1B3BAAF86A1C7"
end

create_table "dataset", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t|
create_table "dataset", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT", force: :cascade do |t|
t.datetime "created"
t.string "doi", null: false
t.binary "is_active", limit: 1, null: false
Expand Down Expand Up @@ -271,14 +282,14 @@
t.string "license", limit: 191
t.text "doi_id"
t.index ["created_at", "indexed_at", "updated_at"], name: "index_events_on_created_indexed_updated"
t.index ["doi_id", "relation_type_id"], name: "index_events_on_doi_id", length: { doi_id: 100 }
t.index ["relation_type_id"], name: "index_events_on_doi_id"
t.index ["source_id", "created_at"], name: "index_events_on_source_id_created_at"
t.index ["subj_id", "obj_id", "source_id", "relation_type_id"], name: "index_events_on_multiple_columns", unique: true, length: { subj_id: 191, obj_id: 191 }
t.index ["updated_at"], name: "index_events_on_updated_at"
t.index ["uuid"], name: "index_events_on_uuid", unique: true, length: 36
end

create_table "media", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t|
create_table "media", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT", force: :cascade do |t|
t.datetime "created"
t.string "media_type", limit: 80
t.datetime "updated"
Expand All @@ -290,7 +301,7 @@
t.index ["url"], name: "index_media_on_url", length: 100
end

create_table "metadata", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t|
create_table "metadata", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT", force: :cascade do |t|
t.datetime "created"
t.integer "metadata_version"
t.integer "version"
Expand All @@ -302,7 +313,7 @@
t.index ["dataset"], name: "FKE52D7B2F4D3D6B1B"
end

create_table "prefix", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t|
create_table "prefix", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT", force: :cascade do |t|
t.datetime "created"
t.string "prefix", limit: 80, null: false
t.integer "version"
Expand Down Expand Up @@ -341,6 +352,7 @@

add_foreign_key "allocator_prefixes", "allocator", column: "allocator", name: "FKE7FBD67446EBD781"
add_foreign_key "allocator_prefixes", "prefix", column: "prefixes", name: "FKE7FBD674AF86A1C7"
add_foreign_key "contacts", "allocator", column: "allocator"
add_foreign_key "datacentre", "allocator", column: "allocator", name: "FK6695D60546EBD781"
add_foreign_key "datacentre_prefixes", "datacentre", column: "datacentre", name: "FK13A1B3BA47B5F5FF"
add_foreign_key "datacentre_prefixes", "prefix", column: "prefixes", name: "FK13A1B3BAAF86A1C7"
Expand Down

0 comments on commit 28d5f37

Please sign in to comment.