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

Version Path
radiant-fabulator-extension-0.0.10 db/migrate/002_create_fabulator_contexts_table.rb
radiant-fabulator-extension-0.0.9 db/migrate/002_create_fabulator_contexts_table.rb
radiant-fabulator-extension-0.0.8 db/migrate/002_create_fabulator_contexts_table.rb
radiant-fabulator-extension-0.0.7 db/migrate/002_create_fabulator_contexts_table.rb
radiant-fabulator-extension-0.0.6 db/migrate/002_create_fabulator_contexts_table.rb
radiant-fabulator-extension-0.0.5 db/migrate/002_create_fabulator_contexts_table.rb
radiant-fabulator-extension-0.0.4 db/migrate/002_create_fabulator_contexts_table.rb
radiant-fabulator-extension-0.0.3 db/migrate/002_create_fabulator_contexts_table.rb
radiant-fabulator-extension-0.0.2 db/migrate/002_create_fabulator_contexts_table.rb
radiant-fabulator-extension-0.0.1 db/migrate/002_create_fabulator_contexts_table.rb