1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-02-17 11:54:22 +01:00
fab-manager/db/migrate/20190521122429_create_invoicing_profiles.rb
2019-05-27 13:00:05 +02:00

14 lines
398 B
Ruby

class CreateInvoicingProfiles < ActiveRecord::Migration
def change
create_table :invoicing_profiles do |t|
t.references :user, index: true, foreign_key: true
t.string :first_name
t.string :last_name
t.references :address, index: true, foreign_key: true
t.references :organization, index: true, foreign_key: true
t.timestamps null: false
end
end
end