31 lines
625 B
Ruby
31 lines
625 B
Ruby
|
|
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
|