class CreateUserFirms < ActiveRecord::Migration[5.0] def change create_table :user_firms do |t| t.references :user, foreign_key: true t.string :name t.string :street t.string :postcode t.string :city t.string :nip t.string :regon t.string :bank_name t.string :bank_account t.boolean :main t.boolean :active t.timestamps end end end