Skip to content

Instantly share code, notes, and snippets.

ActiveRecord::Schema.define do
create_table :posts, force: true do |t|
end
create_table :comments, force: true do |t|
t.integer :post_id
end
end
class ApplicationRecord < ActiveRecord::Base