Sha256: ef46656ad6d2052779b6e36f090ae0d344ff8c7a608398a463ed5aadc7d2d85a
Contents?: true
Size: 595 Bytes
Versions: 4
Compression:
Stored size: 595 Bytes
Contents
class CreateComponents < ActiveRecord::Migration def self.up create_table(:components, :id => false) do |t| t.string :uuid, :limit => 36, :primary => true t.string :name t.boolean :managed, :default => true t.text :specification t.text :options # UUID version of belongs_to :shard t.string :shard_uuid t.timestamps null: false end add_index :components, :uuid, :unique => true add_index :components, :name, :unique => true add_index :components, :shard_uuid end def self.down drop_table :components end end
Version data entries
4 entries across 4 versions & 1 rubygems