Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 00a7f6d7a6
Fetching contributors…

Cannot retrieve contributors at this time

11 lines (9 sloc) 0.456 kb
Sequel.migration do
change do
create_table(:artists){primary_key :id; String :name}
create_table(:albums){primary_key :id; String :name; foreign_key :artist_id, :artists}
create_table(:tags){primary_key :id; String :name}
create_table(:albums_tags){foreign_key :album_id, :albums; foreign_key :tag_id, :tags; primary_key [:album_id, :tag_id]}
create_table(:self_refs){primary_key :id; foreign_key :self_ref_id, :self_refs}
end
end
Jump to Line
Something went wrong with that request. Please try again.