This repository has been archived on 2021-11-24. You can view files and clone it, but cannot push or open issues or pull requests.
phone_app/db/migrate/00620_create_p_contacts.rb
2021-08-23 10:26:02 +02:00

17 lines
436 B
Ruby

class CreatePContacts < ActiveRecord::Migration[6.0]
def change
create_table :p_contacts do |t|
t.string :name
t.text :comment
t.string :tel
t.string :email
t.boolean :bc, :default => false
t.boolean :boolean, :default => false
t.references :contactable, index: true
t.string :contactable_type
t.timestamps
end
end
end