Добавление миграций БД и моделей
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
class CreateOrganizations < ActiveRecord::Migration[7.1]
|
||||
def change
|
||||
create_table :organizations do |t|
|
||||
t.string :inn, null: false
|
||||
t.string :full_name
|
||||
t.string :kpp
|
||||
t.string :okpo
|
||||
t.string :okfs
|
||||
t.string :okopf
|
||||
t.string :okved2
|
||||
t.string :address
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
|
||||
add_index :organizations, :inn
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user