Added princples to the data base.

This commit is contained in:
2022-06-11 19:42:21 +01:00
parent bfae18aae8
commit 0fa0f5f42e
7 changed files with 65 additions and 18 deletions

View File

@@ -0,0 +1,4 @@
class Principle < ActiveRecord::Migration[7.0]
def change
end
end

View File

@@ -0,0 +1,12 @@
class CreatePrinciples < ActiveRecord::Migration[7.0]
def change
create_table :principles do |t|
t.references :caf, null: false, foreign_key: true
t.string :name
t.text :description
t.timestamps
end
add_index :principles, :name
end
end