add Axis, Category and Subject
This commit is contained in:
11
db/migrate/20220721123254_create_axes.rb
Normal file
11
db/migrate/20220721123254_create_axes.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
class CreateAxes < ActiveRecord::Migration[7.0]
|
||||
def change
|
||||
create_table :axes do |t|
|
||||
t.string :name
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
|
||||
add_index(:axes, :name, unique: true)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user