diff --git a/app/assets/javascripts/app/models/taskbar.js.coffee b/app/assets/javascripts/app/models/taskbar.js.coffee new file mode 100644 index 000000000..506d2e0f7 --- /dev/null +++ b/app/assets/javascripts/app/models/taskbar.js.coffee @@ -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' diff --git a/db/migrate/20130529124443_taskbar.rb b/db/migrate/20130529124443_taskbar.rb new file mode 100644 index 000000000..77d95f8e2 --- /dev/null +++ b/db/migrate/20130529124443_taskbar.rb @@ -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