fixed migration naming, fixed translation
This commit is contained in:
parent
4b7a4686db
commit
a2715ca963
5 changed files with 29 additions and 23 deletions
|
|
@ -26,7 +26,7 @@
|
||||||
#aspect_name_edit.hidden
|
#aspect_name_edit.hidden
|
||||||
= form_for @aspect, :remote => true do |aspect|
|
= form_for @aspect, :remote => true do |aspect|
|
||||||
= aspect.text_field :name
|
= aspect.text_field :name
|
||||||
= aspect.submit t('.update'), :disable_with => 'updating', :class => 'button'
|
= aspect.submit t('.update'), :disable_with => t('.updating'), :class => 'button'
|
||||||
|
|
||||||
- if @contacts.count > 0
|
- if @contacts.count > 0
|
||||||
= render 'shared/contact_list', :aspect => @aspect, :contacts => @contacts
|
= render 'shared/contact_list', :aspect => @aspect, :contacts => @contacts
|
||||||
|
|
|
||||||
|
|
@ -91,6 +91,7 @@ en:
|
||||||
aspect_list_is_visible: "aspect list is visible to others in aspect"
|
aspect_list_is_visible: "aspect list is visible to others in aspect"
|
||||||
aspect_list_is_not_visible: "aspect list is hidden to others in aspect"
|
aspect_list_is_not_visible: "aspect list is hidden to others in aspect"
|
||||||
update: "update"
|
update: "update"
|
||||||
|
updating: "updating"
|
||||||
aspect_contacts:
|
aspect_contacts:
|
||||||
done_editing: "done editing"
|
done_editing: "done editing"
|
||||||
aspect_stream:
|
aspect_stream:
|
||||||
|
|
|
||||||
26
db/migrate/20110319172136_add_likes.rb
Normal file
26
db/migrate/20110319172136_add_likes.rb
Normal file
|
|
@ -0,0 +1,26 @@
|
||||||
|
class AddLikes < ActiveRecord::Migration
|
||||||
|
def self.up
|
||||||
|
result = execute("SELECT version FROM schema_migrations WHERE version = '201110319172136'")
|
||||||
|
if result.count > 0
|
||||||
|
execute("DELETE FROM schema_migrations WHERE version = '201110319172136'")
|
||||||
|
else
|
||||||
|
create_table :likes do |t|
|
||||||
|
t.boolean :positive, :default => true
|
||||||
|
t.integer :post_id
|
||||||
|
t.integer :author_id
|
||||||
|
t.string :guid
|
||||||
|
t.text :author_signature
|
||||||
|
t.text :parent_author_signature
|
||||||
|
t.timestamps
|
||||||
|
end
|
||||||
|
add_index :likes, :guid, :unique => true
|
||||||
|
add_index :likes, :post_id
|
||||||
|
add_foreign_key(:likes, :posts, :dependant => :delete)
|
||||||
|
add_foreign_key(:likes, :people, :column => :author_id, :dependant => :delete)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
def self.down
|
||||||
|
drop_table :likes
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
@ -1,21 +0,0 @@
|
||||||
class AddLikes < ActiveRecord::Migration
|
|
||||||
def self.up
|
|
||||||
create_table :likes do |t|
|
|
||||||
t.boolean :positive, :default => true
|
|
||||||
t.integer :post_id
|
|
||||||
t.integer :author_id
|
|
||||||
t.string :guid
|
|
||||||
t.text :author_signature
|
|
||||||
t.text :parent_author_signature
|
|
||||||
t.timestamps
|
|
||||||
end
|
|
||||||
add_index :likes, :guid, :unique => true
|
|
||||||
add_index :likes, :post_id
|
|
||||||
add_foreign_key(:likes, :posts, :dependant => :delete)
|
|
||||||
add_foreign_key(:likes, :people, :column => :author_id, :dependant => :delete)
|
|
||||||
end
|
|
||||||
|
|
||||||
def self.down
|
|
||||||
drop_table :likes
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
#
|
#
|
||||||
# It's strongly recommended to check this file into your version control system.
|
# It's strongly recommended to check this file into your version control system.
|
||||||
|
|
||||||
ActiveRecord::Schema.define(:version => 201110319172136) do
|
ActiveRecord::Schema.define(:version => 20110319172136) do
|
||||||
|
|
||||||
create_table "aspect_memberships", :force => true do |t|
|
create_table "aspect_memberships", :force => true do |t|
|
||||||
t.integer "aspect_id", :null => false
|
t.integer "aspect_id", :null => false
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue