canvas-lms/db/migrate/20110308223938_create_conte...

25 lines
518 B
Ruby

class CreateContextExternalTools < ActiveRecord::Migration
tag :predeploy
def self.up
create_table :context_external_tools do |t|
t.integer :context_id, :limit => 8
t.string :context_type
t.string :domain
t.string :url
t.string :shared_secret
t.string :consumer_key
t.string :name
t.text :description
t.text :settings
t.string :workflow_state
t.timestamps
end
end
def self.down
drop_table :context_external_tools
end
end