Create code posts

This commit is contained in:
2024-03-04 21:34:12 +11:00
parent 4277bde352
commit 56edde6ab5
13 changed files with 155 additions and 53 deletions

View File

@@ -12,7 +12,7 @@ ROM::SQL.migration do
$$ language 'plpgsql';
SQL
alter_table :pages do
alter_table :pages do
add_column :updated_at, :timestamp
end
@@ -25,7 +25,7 @@ ROM::SQL.migration do
down do
execute("DROP FUNCTION IF EXISTS update_updated_at_column();")
run <<-SQL
DROP TRIGGER IF EXISTS update_pages_updated_at ON pages;
SQL

View File

@@ -0,0 +1,9 @@
# frozen_string_literal: true
ROM::SQL.migration do
change do
alter_table :posts do
add_column :programming_language, :text
end
end
end