diff --git a/app/models/measurement.rb b/app/models/measurement.rb index f392bcc..ff92746 100644 --- a/app/models/measurement.rb +++ b/app/models/measurement.rb @@ -23,7 +23,6 @@ class Measurement < ActiveRecord::Base after_initialize do if new_record? - self.hidden = false if self.hidden.nil? self.taken_at = Time.now end end @@ -43,10 +42,6 @@ class Measurement < ActiveRecord::Base .find_or_create_by(name: self.name, domain: ColumnView.domains[:measurement]) end - def toggle_hidden! - self.toggle!(:hidden) - end - def taken_at_date self.taken_at.getlocal end diff --git a/app/views/measurements/_index.html.erb b/app/views/measurements/_index.html.erb index 01ab5d2..365a7a7 100644 --- a/app/views/measurements/_index.html.erb +++ b/app/views/measurements/_index.html.erb @@ -11,8 +11,7 @@ <% @measurements.each do |m| %> <% next if m.new_record? %> - + <%= format_datetime(m) %>
diff --git a/db/migrate/001_create_schema.rb b/db/migrate/001_create_schema.rb index 0aad9af..67a2043 100644 --- a/db/migrate/001_create_schema.rb +++ b/db/migrate/001_create_schema.rb @@ -62,7 +62,6 @@ class CreateSchema < ActiveRecord::Migration t.references :project t.string :name t.references :source - t.boolean :hidden t.timestamp :taken_at t.timestamps null: false end