<th><%= _'Arc|Code' %></th>
<th><%= _'Arc|Extname' %></th>
<th><%= _'Arc|Location' %></th>
+ <th><%= _'Arc|Locked' %></th>
<th><%= _'Arc|Summary' %></th>
<th><%= _'Arc|Origname' %></th>
</tr>
<td><%=link_to h(arc.code), arc %></td>
<td><%=h arc.extname %></td>
<td><%=h arc.location.code %></td>
+ <td><%=h(arc.locked? ? 'yes' : 'no') %></td>
<td><%=h arc.summary %></td>
<td><%=h arc.origname %></td>
</tr>
</p>
<p>
+ <b><%= _'Arc|Locked' %>:</b>
+ <%=h(@arc.locked? ? 'yes' : 'no') %>
+</p>
+
+<p>
<b><%= _'Arc|Summary' %>:</b>
<%=h @arc.summary %>
</p>
<th><%= _'Arc|Code' %></th>
<th><%= _'Arc|Extname' %></th>
<th><%= _'Arc|Location' %></th>
+ <th><%= _'Arc|Locked' %></th>
<th><%= _'Arc|Summary' %></th>
<th><%= _'Arc|Origname' %></th>
</tr>
<td><%=link_to h(arc.code), arc %></td>
<td><%=h arc.extname %></td>
<td><%=h arc.location.code %></td>
+ <td><%=h(arc.locked? ? 'yes' : 'no') %></td>
<td><%=h arc.summary %></td>
<td><%=h arc.origname %></td>
</tr>
--- /dev/null
+class AddLockedToArc < ActiveRecord::Migration
+ def self.up
+ add_column :arcs, :locked, :boolean, :default => false, :null => false
+ end
+
+ def self.down
+ remove_column :arcs, :locked
+ end
+end
#
# It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 20100614140952) do
+ActiveRecord::Schema.define(:version => 20100620012643) do
create_table "arc_thumbs", :force => true do |t|
t.integer "arc_id"
add_index "arc_thumbs", ["arc_id", "thumb_id"], :name => "index_arc_thumbs_on_arc_id_and_thumb_id", :unique => true
create_table "arcs", :force => true do |t|
- t.string "code", :limit => 10, :null => false
- t.string "extname", :limit => 10, :null => false
+ t.string "code", :limit => 10, :null => false
+ t.string "extname", :limit => 10, :null => false
t.integer "location_id"
t.string "summary"
t.string "origname"
t.datetime "created_at"
t.datetime "updated_at"
+ t.boolean "locked", :default => false, :null => false
end
create_table "locations", :force => true do |t|