diff --git a/Models.dia b/Models.dia index 64cc147c..2187e972 100644 Binary files a/Models.dia and b/Models.dia differ diff --git a/app/models/list.rb b/app/models/list.rb index 11e45d0c..bb3fe32d 100644 --- a/app/models/list.rb +++ b/app/models/list.rb @@ -60,7 +60,7 @@ class List end def move_to_table to_table - TableMove.create list: self, from_table_id: table_id, to_table: to_table + UserTableMove.create list: self, from_table_id: table_id, to_table: to_table self.table = to_table self.section_id = to_table.section_id save diff --git a/app/models/table_move.rb b/app/models/user_table_move.rb similarity index 87% rename from app/models/table_move.rb rename to app/models/user_table_move.rb index 41f03ec0..80b585e6 100644 --- a/app/models/table_move.rb +++ b/app/models/user_table_move.rb @@ -1,4 +1,4 @@ -class TableMove +class UserTableMove include SimplyStored::Couch belongs_to :list belongs_to :from_table, class_name: 'Table'