15 lines
301 B
Crystal
15 lines
301 B
Crystal
|
class CreateTagNamespaces::V00000000000004 < Avram::Migrator::Migration::V1
|
||
|
def migrate
|
||
|
create table_for(TagNamespace) do
|
||
|
primary_key id : Int64
|
||
|
|
||
|
add name : String
|
||
|
add description : String?, default: nil
|
||
|
end
|
||
|
end
|
||
|
|
||
|
def rollback
|
||
|
drop table_for(TagNamespace)
|
||
|
end
|
||
|
end
|