spec/support/sqlite_seed.rb in bullet-7.0.0 vs spec/support/sqlite_seed.rb in bullet-7.0.1

- old
+ new

@@ -90,13 +90,20 @@ page1 = Page.create(name: 'page1', parent_id: folder1.id, author_id: author1.id) page2 = Page.create(name: 'page2', parent_id: folder1.id, author_id: author1.id) page3 = Page.create(name: 'page3', parent_id: folder2.id, author_id: author2.id) page4 = Page.create(name: 'page4', parent_id: folder2.id, author_id: author2.id) + role1 = Role.create(name: 'Amdin') + role2 = Role.create(name: 'User') + user1 = User.create(name: 'user1', category: category1) user2 = User.create(name: 'user2', category: category1) + user1.roles << role1 + user1.roles << role2 + user2.roles << role2 + submission1 = user1.create_submission(name: 'submission1') submission2 = user2.create_submission(name: 'submission2') submission1.replies.create(name: 'reply1') submission1.replies.create(name: 'reply2') @@ -242,9 +249,20 @@ end create_table :replies do |t| t.column :name, :string t.column :submission_id, :integer + end + + create_table :roles do |t| + t.column :name, :string + t.column :resource_id, :integer + t.column :resource_type, :string + end + + create_table :roles_users do |t| + t.column :role_id, :integer + t.column :user_id, :integer end create_table :submissions do |t| t.column :name, :string t.column :user_id, :integer