Sha256: 2d75cc96e02ea73f8188a540654dda556df6de5b63b8365b5fa08f918cd9a529
Contents?: true
Size: 642 Bytes
Versions: 1
Compression:
Stored size: 642 Bytes
Contents
class CreateFinishes < ActiveRecord::Migration def change create_table :finishes do |t| t.references :project, null: false t.foreign_key :projects t.references :area, null: true t.foreign_key :areas t.references :category, null: true t.foreign_key :categories t.string :name t.string :location t.string :model t.integer :quantity t.money :price t.text :description t.timestamps end add_index :finishes, :id add_index :finishes, :project_id add_index :finishes, [:project_id, :name], unique: true end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
self_systeem-0.1.0 | test/dummy_app/db/migrate/20140312232217_create_finishes.rb |