mirror of
https://github.com/neocities/neocities.git
synced 2025-07-20 17:46:05 +02:00
Working on signup and signin
This commit is contained in:
parent
50882756d0
commit
4ddd244588
12 changed files with 105 additions and 11 deletions
13
migrations/003_create_tags.rb
Normal file
13
migrations/003_create_tags.rb
Normal file
|
@ -0,0 +1,13 @@
|
|||
Sequel.migration do
|
||||
up {
|
||||
DB.create_table! :tags do
|
||||
primary_key :id
|
||||
String :name
|
||||
DateTime :created_at
|
||||
end
|
||||
}
|
||||
|
||||
down {
|
||||
DB.drop_table :tags
|
||||
}
|
||||
end
|
12
migrations/004_create_site_tags.rb
Normal file
12
migrations/004_create_site_tags.rb
Normal file
|
@ -0,0 +1,12 @@
|
|||
Sequel.migration do
|
||||
up {
|
||||
DB.create_table! :site_tags do
|
||||
Integer :site_id
|
||||
Integer :tag_id
|
||||
end
|
||||
}
|
||||
|
||||
down {
|
||||
DB.drop_table :site_tags
|
||||
}
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue