kaiho/db/migrate/20180722072217_create_softwares.rb

10 lines
215 B
Ruby

class CreateSoftwares < ActiveRecord::Migration[5.2]
def change
create_table :softwares do |t|
t.string :name, uniqueness: true, null: false
t.string :website
t.timestamps
end
end
end