From 621e45b6a2144fe375e5dd4dc455aa0a6d8647f0 Mon Sep 17 00:00:00 2001 From: Kyle Drake Date: Tue, 7 Feb 2017 22:44:03 -0800 Subject: [PATCH] Modify domain registration record structure. --- migrations/095_modify_domains.rb | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 migrations/095_modify_domains.rb diff --git a/migrations/095_modify_domains.rb b/migrations/095_modify_domains.rb new file mode 100644 index 00000000..53ee199d --- /dev/null +++ b/migrations/095_modify_domains.rb @@ -0,0 +1,30 @@ +Sequel.migration do + up { + DB.drop_table :domains + + DB.create_table! :domains do + primary_key :id + Integer :site_id, index: true + Integer :parent_site_id, index: true + String :gandi_domain_id + String :name + DateTime :created_at + DateTime :released_at + end + } + + down { + DB.drop_table :domains + + DB.create_table! :domains do + primary_key :id + Integer :site_id, index: true + String :gandi_handle + String :gandi_password + String :gandi_domain_id + String :name + DateTime :created_at + DateTime :released_at + end + } +end