qi6_app/db/migrate/20181021211205_create_p_contacts.rb
2019-05-17 12:30:45 +02:00

16 lines
351 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, :boolean, :default => false
t.integer :contactable_id
t.string :contactable_type
t.timestamps null: false
end
end
end