Sha256: 9bebba9ed2c5a0ba0f5303771a7c10211b83aaf08e632a58ebb2b4d87c773c56
Contents?: true
Size: 464 Bytes
Versions: 10
Compression:
Stored size: 464 Bytes
Contents
class CreateFabulatorContextsTable < ActiveRecord::Migration def self.up create_table :fabulator_contexts do |t| t.string :session, :null => false t.references :page, :null => false t.references :user t.text :context t.integer :lock_version, :default => 0 end add_index :fabulator_contexts, [ :session, :page_id, :user_id ], :unique => true end def self.down drop_table :fabulator_contexts end end
Version data entries
10 entries across 10 versions & 1 rubygems