Files
adamantium/config/db/migrate/20230101035642_create_posts.rb
2024-08-05 19:00:09 +10:00

13 lines
265 B
Ruby

# frozen_string_literal: true
ROM::SQL.migration do
change do
create_table :posts do
primary_key :id
column :name, :text, null: false, default: ""
column :content, :text, null: false
column :published_at, :timestamp
end
end
end