Sha256: 7c4ec9c1f05d63781cb46b64d4fdfd112a756c643863f1198ca086185f7f5a8a
Contents?: true
Size: 794 Bytes
Versions: 2
Compression:
Stored size: 794 Bytes
Contents
class CreateBits < ActiveRecord::Migration def self.up create_table :bits do |t| t.column :id, :integer, :null => false t.column :owner_id, :integer t.column :parent_id, :integer t.column :lft, :integer t.column :rgt, :integer t.column :type, :string, :limit => 6 t.column :name, :string, :limit => 255 t.column :created_at, :timestamp t.column :updated_at, :timestamp t.column :access, :integer t.column :meta, :text t.column :obj, :text t.column :size, :integer, :default => 0 t.column :version, :string t.column :deleted, :integer, :default => 0 end add_index :bits, :name end def self.down drop_table :bits end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sinatra-s3-0.99 | db/migrate/001_create_bits.rb |
sinatra-s3-0.98 | db/migrate/001_create_bits.rb |