20120307143552_create_ontologies.rb revision 3ff4a55d2d96372130084b5c9816c0608eb21210
45312f52ff3a3d4c137447be4c7556500c2f8bf2Timo Sirainenclass CreateOntologies < ActiveRecord::Migration
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0Timo Sirainen def change
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0Timo Sirainen create_table :ontologies do |t|
5ab2ee0b9b7ad3867fcfd2a31fda0790370fbbbdTimo Sirainen t.references :logic
dc9de21d4375faeedbe5b7e941502ac578650da9Timo Sirainen t.string :uri, :null => false
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0Timo Sirainen t.string :state, :default => 'pending', :null => false
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0Timo Sirainen t.string :name
0371406d952fe51367c7be91703e5634b7d9d225Timo Sirainen t.text :description
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0Timo Sirainen
06b0c3be9905099038964b068216bbed155701deTimo Sirainen t.integer :entities_count, :axioms_count
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0Timo Sirainen
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0Timo Sirainen t.timestamps :null => false
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0Timo Sirainen end
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0Timo Sirainen
06b0c3be9905099038964b068216bbed155701deTimo Sirainen change_table :ontologies do |t|
06b0c3be9905099038964b068216bbed155701deTimo Sirainen t.index :logic_id
06b0c3be9905099038964b068216bbed155701deTimo Sirainen t.foreign_key :logics
6bca3405636e3ec95724350c3a10d6fcb737782aTimo Sirainen end
6bca3405636e3ec95724350c3a10d6fcb737782aTimo Sirainen end
6bca3405636e3ec95724350c3a10d6fcb737782aTimo Sirainenend
6bca3405636e3ec95724350c3a10d6fcb737782aTimo Sirainen