Mercurial > hg > soundsoftware-site
annotate .svn/pristine/8a/8a0afb114464a58c980d1c1fc330e4d0f4da9931.svn-base @ 1087:74407a04925c issue_540
* (publication.rb) - fixed the acts_as_activity query (see diff to previous commit) - not returning duplicate results any longer; added the visible scope to the publication model;
* (init.rb) - created a new public permission - view_publication.
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Fri, 23 Nov 2012 17:25:27 +0000 |
parents | cbb26bc654de |
children |
rev | line source |
---|---|
Chris@909 | 1 class <%= class_name %> < ActiveRecord::Migration |
Chris@909 | 2 def self.up |
Chris@909 | 3 drop_table :open_id_authentication_settings |
Chris@909 | 4 drop_table :open_id_authentication_nonces |
Chris@909 | 5 |
Chris@909 | 6 create_table :open_id_authentication_nonces, :force => true do |t| |
Chris@909 | 7 t.integer :timestamp, :null => false |
Chris@909 | 8 t.string :server_url, :null => true |
Chris@909 | 9 t.string :salt, :null => false |
Chris@909 | 10 end |
Chris@909 | 11 end |
Chris@909 | 12 |
Chris@909 | 13 def self.down |
Chris@909 | 14 drop_table :open_id_authentication_nonces |
Chris@909 | 15 |
Chris@909 | 16 create_table :open_id_authentication_nonces, :force => true do |t| |
Chris@909 | 17 t.integer :created |
Chris@909 | 18 t.string :nonce |
Chris@909 | 19 end |
Chris@909 | 20 |
Chris@909 | 21 create_table :open_id_authentication_settings, :force => true do |t| |
Chris@909 | 22 t.string :setting |
Chris@909 | 23 t.binary :value |
Chris@909 | 24 end |
Chris@909 | 25 end |
Chris@909 | 26 end |