Sha256: 633f3d39be1b7db831c57f6aeb83653b818c444832a1d0702261f629673955b5
Contents?: true
Size: 475 Bytes
Versions: 61
Compression:
Stored size: 475 Bytes
Contents
class CreateElements < ActiveRecord::Migration def self.up create_table :elements do |t| t.string :name t.string :display_name t.integer :position t.integer :page_id t.boolean :public, :default => true t.boolean :folded, :default => false t.boolean :unique, :default => false t.timestamps t.userstamps end add_index :elements, [:page_id, :position] end def self.down drop_table :elements end end
Version data entries
61 entries across 61 versions & 1 rubygems