rating/spec/support/db/migrate/create_authors_table.rb

10 lines
185 B
Ruby
Raw Permalink Normal View History

2017-11-03 02:02:23 +00:00
# frozen_string_literal: true
class CreateAuthorsTable < ActiveRecord::Migration[7.0]
2017-11-03 02:02:23 +00:00
def change
create_table :authors do |t|
t.string :name, null: false
end
end
end