Merge branch 'master' of github.com:martini/zammad
This commit is contained in:
commit
5b37fc30ad
2 changed files with 26 additions and 0 deletions
4
app/assets/javascripts/app/models/taskbar.js.coffee
Normal file
4
app/assets/javascripts/app/models/taskbar.js.coffee
Normal 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'
|
22
db/migrate/20130529124443_taskbar.rb
Normal file
22
db/migrate/20130529124443_taskbar.rb
Normal 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
|
Loading…
Reference in a new issue