Merge branch 'master' of github.com:martini/zammad

This commit is contained in:
Martin Edenhofer 2013-05-31 19:24:39 +02:00
commit 5b37fc30ad
2 changed files with 26 additions and 0 deletions

View file

@ -0,0 +1,4 @@
class App.Taskbar extends App.Model
@configure 'Taskbar', 'type', 'type_id', 'callback', 'state', 'params', 'notify', 'active'
@extend Spine.Model.Local
# @url: 'api/taskbar'

View file

@ -0,0 +1,22 @@
class Taskbar < ActiveRecord::Migration
def up
create_table :taskbars do |t|
t.column :user_id, :integer, :null => false
t.column :last_contact, :datetime, :null => false
t.column :client_id, :string, :limit => 100, :null => false
t.column :type, :string, :limit => 100, :null => false
t.column :type_id, :string, :limit => 100, :null => false
t.column :callback, :string, :limit => 100, :null => false
t.column :notify, :boolean, :null => false, :default => false
t.column :active, :boolean, :null => false, :default => false
t.column :state, :string, :limit => 8000,:null => true
t.column :params, :string, :limit => 2000,:null => true
t.timestamps
end
end
def down
drop_table :taskbars
end
end